addons portados en el repo de ecocentral
This commit is contained in:
parent
f2194c5367
commit
65818b0155
72 changed files with 2474 additions and 3 deletions
3
l10n_es_partner_ccpae/models/__init__.py
Normal file
3
l10n_es_partner_ccpae/models/__init__.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import res_partner
|
||||
26
l10n_es_partner_ccpae/models/res_partner.py
Normal file
26
l10n_es_partner_ccpae/models/res_partner.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 2026 Ecocentral, Criptomart
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields
|
||||
from odoo import models
|
||||
|
||||
# Organismo de control por defecto: el código CCPAE de Ecocentral. Los
|
||||
# proveedores certificados por otro consejo regulador lo sobreescriben a mano.
|
||||
DEFAULT_CCPAE_ORGANISMO = "ES-ECO-019-CT"
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
ccpae_operador = fields.Char(
|
||||
string="Nº de Operador",
|
||||
tracking=True,
|
||||
help="Número de operador en el registro del consejo regulador de "
|
||||
"producción agraria ecológica.",
|
||||
)
|
||||
ccpae_organismo = fields.Char(
|
||||
string="Organismo regulador",
|
||||
default=DEFAULT_CCPAE_ORGANISMO,
|
||||
tracking=True,
|
||||
help="Código del organismo de control que certifica al operador.",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue