forked from avanzosc/odoo-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] base_month: Creation of new object with the months of the year.
- Loading branch information
1 parent
a22fe2a
commit e8198eb
Showing
8 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
========== | ||
Base month | ||
========== | ||
|
||
* Creation of new object with the months of the year. | ||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/avanzosc/odoo-addons/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/avanzosc/odoo-addons/issues/new?body=module:%20base_month%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Avanzosc | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Ana Juaristi <[email protected]> | ||
* Alfredo de la Fuente <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Base Month", | ||
"version": "12.0.1.0.0", | ||
"category": "Contract Management", | ||
"license": "AGPL-3", | ||
"author": "AvanzOSC", | ||
"website": "http://www.avanzosc.es", | ||
"depends": [ | ||
"base", | ||
], | ||
"data": [ | ||
"data/ir_sequence_data.xml", | ||
"security/ir.model.access.csv", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo noupdate="1"> | ||
<record id="base_month_january" model="base.month"> | ||
<field name="name">January</field> | ||
<field name="number">1</field> | ||
</record> | ||
<record id="base_month_february" model="base.month"> | ||
<field name="name">February</field> | ||
<field name="number">2</field> | ||
</record> | ||
<record id="base_month_march" model="base.month"> | ||
<field name="name">March</field> | ||
<field name="number">3</field> | ||
</record> | ||
<record id="base_month_april" model="base.month"> | ||
<field name="name">April</field> | ||
<field name="number">4</field> | ||
</record> | ||
<record id="base_month_may" model="base.month"> | ||
<field name="name">May</field> | ||
<field name="number">5</field> | ||
</record> | ||
<record id="base_month_june" model="base.month"> | ||
<field name="name">June</field> | ||
<field name="number">6</field> | ||
</record> | ||
<record id="base_month_july" model="base.month"> | ||
<field name="name">July</field> | ||
<field name="number">7</field> | ||
</record> | ||
<record id="base_month_august" model="base.month"> | ||
<field name="name">August</field> | ||
<field name="number">8</field> | ||
</record> | ||
<record id="base_month_september" model="base.month"> | ||
<field name="name">September</field> | ||
<field name="number">9</field> | ||
</record> | ||
<record id="base_month_october" model="base.month"> | ||
<field name="name">October</field> | ||
<field name="number">10</field> | ||
</record> | ||
<record id="base_month_november" model="base.month"> | ||
<field name="name">November</field> | ||
<field name="number">11</field> | ||
</record> | ||
<record id="base_month_december" model="base.month"> | ||
<field name="name">December</field> | ||
<field name="number">12</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * base_month | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-08 08:36+0000\n" | ||
"PO-Revision-Date: 2019-05-08 08:36+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: \n" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_april | ||
msgid "April" | ||
msgstr "Abril" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_august | ||
msgid "August" | ||
msgstr "Agosto" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__create_uid | ||
msgid "Created by" | ||
msgstr "Creado por" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__create_date | ||
msgid "Created on" | ||
msgstr "Creado el" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_december | ||
msgid "December" | ||
msgstr "Diciembre" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__display_name | ||
msgid "Display Name" | ||
msgstr "Nombre mostrado" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_february | ||
msgid "February" | ||
msgstr "Febrero" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_january | ||
msgid "January" | ||
msgstr "Enero" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_july | ||
msgid "July" | ||
msgstr "Julio" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_june | ||
msgid "June" | ||
msgstr "Junio" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última modificación en" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__write_uid | ||
msgid "Last Updated by" | ||
msgstr "Última actualización por" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__write_date | ||
msgid "Last Updated on" | ||
msgstr "Última actualización el" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_march | ||
msgid "March" | ||
msgstr "Marzo" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_may | ||
msgid "May" | ||
msgstr "Mayo" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__name | ||
msgid "Month" | ||
msgstr "Mes" | ||
|
||
#. module: base_month | ||
#: model:ir.model,name:base_month.model_base_month | ||
msgid "Months of the year" | ||
msgstr "Meses del año" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_november | ||
msgid "November" | ||
msgstr "Noviembre" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_october | ||
msgid "October" | ||
msgstr "Octubre" | ||
|
||
#. module: base_month | ||
#: model:base.month,name:base_month.base_month_september | ||
msgid "September" | ||
msgstr "Septiembre" | ||
|
||
#. module: base_month | ||
#: model:ir.model.fields,field_description:base_month.field_base_month__number | ||
msgid "Number of month" | ||
msgstr "Número de mes" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import base_month |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright 2019 Alfredo de la Fuente - AvanzOSC | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
from odoo import models, fields | ||
|
||
|
||
class BaseMonth(models.Model): | ||
_name = 'base.month' | ||
_description = 'Months of the year' | ||
|
||
name = fields.Char(string='Month', translate=True, required=True) | ||
number = fields.Integer(string='Number of month', required=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_base_month_user,base.month,base_month.model_base_month,base.group_user,1,1,1,0 |