forked from OCA/l10n-spain
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] l10n_es_product_plastic_tax: Add cip field to res_company
- Loading branch information
1 parent
1f2cbb6
commit b611cf4
Showing
5 changed files
with
48 additions
and
6 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
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
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
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,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) |
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,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> |