Skip to content

Commit

Permalink
[IMP] l10n_es_product_plastic_tax: Add cip field to res_company
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiobstoj committed Nov 8, 2024
1 parent 1f2cbb6 commit b611cf4
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 6 deletions.
3 changes: 2 additions & 1 deletion l10n_es_product_plastic_tax/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"category": "Product",
"author": "FactorLibre, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["product"],
"depends": ["product", "l10n_es_aeat"],
"website": "https://github.com/OCA/l10n-spain",
"data": [
"views/product_template_views.xml",
"views/res_company_views.xml",
],
"installable": True,
"application": False,
Expand Down
23 changes: 18 additions & 5 deletions l10n_es_product_plastic_tax/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-09 11:59+0000\n"
"PO-Revision-Date: 2023-10-09 14:01+0200\n"
"POT-Creation-Date: 2024-11-08 13:13+0000\n"
"PO-Revision-Date: 2024-11-08 13:13+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
"X-Generator: Poedit 3.0.1\n"

#. module: l10n_es_product_plastic_tax
#: model_terms:ir.ui.view,arch_db:l10n_es_product_plastic_tax.view_template_property_form_inherit_plastic_tax
Expand Down Expand Up @@ -46,6 +44,16 @@ msgstr ""
"C - Productos que contengan plástico destinados a permitir el cierre, la "
"comercialización u otros de envases no reutilizables"

#. module: l10n_es_product_plastic_tax
#: model:ir.model.fields,field_description:l10n_es_product_plastic_tax.field_res_company__cip
msgid "CIP"
msgstr "CIP"

#. module: l10n_es_product_plastic_tax
#: model:ir.model,name:l10n_es_product_plastic_tax.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: l10n_es_product_plastic_tax
#: model:ir.model.fields,field_description:l10n_es_product_plastic_tax.field_product_product__non_reusable_plastic_weight
#: model:ir.model.fields,field_description:l10n_es_product_plastic_tax.field_product_template__non_reusable_plastic_weight
Expand All @@ -67,6 +75,11 @@ msgstr ""
msgid "Plastic"
msgstr "Plástico"

#. module: l10n_es_product_plastic_tax
#: model:ir.model.fields,help:l10n_es_product_plastic_tax.field_res_company__cip
msgid "Plastic Identification Code"
msgstr "Código de identificación del plástico"

#. module: l10n_es_product_plastic_tax
#: model:ir.model.fields,field_description:l10n_es_product_plastic_tax.field_product_product__plastic_tax_product_code
#: model:ir.model.fields,field_description:l10n_es_product_plastic_tax.field_product_template__plastic_tax_product_code
Expand Down
1 change: 1 addition & 0 deletions l10n_es_product_plastic_tax/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import product_template
from . import product
from . import res_company
9 changes: 9 additions & 0 deletions l10n_es_product_plastic_tax/models/res_company.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# © 2024 FactorLibre - Sergio Bustamante <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models


class ResCompany(models.Model):
_inherit = "res.company"

cip = fields.Char(string="CIP", help="Plastic Identification Code", size=13)
18 changes: 18 additions & 0 deletions l10n_es_product_plastic_tax/views/res_company_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- © 2024 FactorLibre - Sergio Bustamante <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<record id="view_company_cip_form" model="ir.ui.view">
<field name="name">res.company.cip.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="l10n_es_aeat.view_company_aeat_form" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='aeat']//group[@name='aeat_config']"
position="inside"
>
<field name="cip" />
</xpath>
</field>
</record>
</odoo>

0 comments on commit b611cf4

Please sign in to comment.