forked from OCA/l10n-italy
-
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 link in readme add copyright fix abstract.it web site add encoding and disclaimer change fields size add permission on menuitem
- Loading branch information
Showing
12 changed files
with
12,439 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,19 @@ | ||
l10n_it_ateco | ||
============= | ||
|
||
This module registers a model in order to manage Ateco categories. | ||
|
||
Each partner can be referenced by one or many Ateco codes | ||
that specify the activities of a partner. | ||
|
||
|
||
TODO | ||
---- | ||
|
||
This module needs a method to import una-tantum ateco codes | ||
from ISTAT web site in order maintain them up to date. | ||
|
||
See: | ||
|
||
* http://www3.istat.it/strumenti/definizioni/ateco/STRUTTURA.zip | ||
* http://www3.istat.it/strumenti/definizioni/ateco/ |
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,21 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright (C) 2014 Abstract | ||
# (<http://abstract.it>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
from . import model |
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,46 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright (C) 2014 Abstract | ||
# (<http://abstract.it>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
{ | ||
"name": "Ateco codes", | ||
"version": "1.0", | ||
"category": "Localisation/Italy", | ||
"description": """Italian Localisation module - Ateco codes | ||
Funcionalities: | ||
- Add Ateco codes model | ||
- Reference Ateco codes to partner model | ||
""", | ||
"author": "Abstract", | ||
"website": "http://abstract.it", | ||
"depends": [ | ||
"sale" | ||
], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"view/ateco_view.xml", | ||
"view/partner_view.xml", | ||
"data/ateco_data.xml" | ||
], | ||
"active": False, | ||
"installable": True | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,102 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_ateco | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2014-10-20 15:45+0000\n" | ||
"PO-Revision-Date: 2014-10-20 15:45+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: l10n_it_ateco | ||
#: field:ateco.category,code:0 | ||
#: model:ir.model,name:l10n_it_ateco.model_ateco_category | ||
msgid "ATECO Code" | ||
msgstr "Codice Ateco" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:res.partner:l10n_it_ateco.view_partner_form_inherit_ateco | ||
msgid "Ateco" | ||
msgstr "Ateco" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_form | ||
msgid "Ateco Category" | ||
msgstr "Categoria Ateco" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_tree | ||
#: model:ir.actions.act_window,name:l10n_it_ateco.action_ateco_category_search | ||
#: model:ir.ui.menu,name:l10n_it_ateco.menu_ateco_category_form | ||
#: view:res.partner:l10n_it_ateco.view_partner_form_inherit_ateco | ||
#: field:res.partner,ateco_category_ids:0 | ||
msgid "Ateco categories" | ||
msgstr "Categorie Ateco" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,child_ids:0 | ||
msgid "Child Categories" | ||
msgstr "Categorie figlie" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,create_uid:0 | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,create_date:0 | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,description:0 | ||
msgid "Description" | ||
msgstr "Descrizione" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,id:0 | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,write_uid:0 | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,write_date:0 | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,name:0 | ||
msgid "Name" | ||
msgstr "Nome" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,parent_id:0 | ||
msgid "Parent Category" | ||
msgstr "Categoria genitore" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_form | ||
#: model:ir.model,name:l10n_it_ateco.model_res_partner | ||
msgid "Partner" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,partner_ids:0 | ||
msgid "Partners" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.ateco_category_search | ||
msgid "Search Ateco categories" | ||
msgstr "Ricerca categorie Ateco" |
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,102 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_ateco | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2014-10-20 15:45+0000\n" | ||
"PO-Revision-Date: 2014-10-20 15:45+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: l10n_it_ateco | ||
#: field:ateco.category,code:0 | ||
#: model:ir.model,name:l10n_it_ateco.model_ateco_category | ||
msgid "ATECO Code" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:res.partner:l10n_it_ateco.view_partner_form_inherit_ateco | ||
msgid "Ateco" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_form | ||
msgid "Ateco Category" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_tree | ||
#: model:ir.actions.act_window,name:l10n_it_ateco.action_ateco_category_search | ||
#: model:ir.ui.menu,name:l10n_it_ateco.menu_ateco_category_form | ||
#: view:res.partner:l10n_it_ateco.view_partner_form_inherit_ateco | ||
#: field:res.partner,ateco_category_ids:0 | ||
msgid "Ateco categories" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,child_ids:0 | ||
msgid "Child Categories" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,create_uid:0 | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,create_date:0 | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,description:0 | ||
msgid "Description" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,id:0 | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,write_uid:0 | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,write_date:0 | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,name:0 | ||
msgid "Name" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,parent_id:0 | ||
msgid "Parent Category" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.view_ateco_category_form | ||
#: model:ir.model,name:l10n_it_ateco.model_res_partner | ||
msgid "Partner" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: field:ateco.category,partner_ids:0 | ||
msgid "Partners" | ||
msgstr "" | ||
|
||
#. module: l10n_it_ateco | ||
#: view:ateco.category:l10n_it_ateco.ateco_category_search | ||
msgid "Search Ateco categories" | ||
msgstr "" |
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,22 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright (C) 2014 Abstract | ||
# (<http://abstract.it>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
from . import ateco | ||
from . import partner |
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,57 @@ | ||
# -*- encoding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Copyright (C) 2014 Abstract | ||
# (<http://abstract.it>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
from openerp import models | ||
from openerp import fields | ||
|
||
|
||
class ateco_category(models.Model): | ||
_name = 'ateco.category' | ||
_description = 'ATECO Code' | ||
|
||
name = fields.Char( | ||
'Name', | ||
required=True | ||
) | ||
code = fields.Char( | ||
'ATECO Code', | ||
size=9, | ||
required=False | ||
) | ||
description = fields.Text( | ||
'Description' | ||
) | ||
parent_id = fields.Many2one( | ||
'ateco.category', | ||
'Parent Category', | ||
select=True | ||
) | ||
child_ids = fields.One2many( | ||
'ateco.category', | ||
'parent_id', | ||
'Child Categories' | ||
) | ||
partner_ids = fields.Many2many( | ||
'res.partner', | ||
'ateco_category_partner_rel', | ||
'ateco_id', | ||
'partner_id', | ||
'Partners' | ||
) |
Oops, something went wrong.