19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:16 +01:00
parent 89c6e82fe7
commit 1b82c20a58
572 changed files with 43570 additions and 53303 deletions

View file

@ -9,12 +9,22 @@ class AccountJournal(models.Model):
compute='_compute_l10n_ec_require_emission',
help='True if an entity and emission point must be set on the journal'
)
l10n_ec_entity = fields.Char(string="Emission Entity", size=3, copy=False)
l10n_ec_emission = fields.Char(string="Emission Point", size=3, copy=False)
l10n_ec_entity = fields.Char(
string="Emission Entity",
size=3,
copy=False,
help="Ecuador: Emission entity number that is given by the SRI."
)
l10n_ec_emission = fields.Char(
string="Emission Point",
size=3, copy=False,
help="Ecuador: Emission point number that is given by the SRI."
)
l10n_ec_emission_address_id = fields.Many2one(
comodel_name="res.partner",
string="Emission address",
domain="['|', ('id', '=', company_partner_id), '&', ('id', 'child_of', company_partner_id), ('type', '!=', 'contact')]",
help="Ecuador: Address for electronic invoicing.",
)
@api.depends('type', 'country_code', 'l10n_latam_use_documents')
@ -22,13 +32,3 @@ class AccountJournal(models.Model):
for journal in self:
journal.l10n_ec_require_emission = journal.type == 'sale' and journal.country_code == 'EC' and journal.l10n_latam_use_documents
# NOTE: Removed in master as it has no use
l10n_ec_emission_type = fields.Selection(
string="Emission type",
selection=[
("pre_printed", "Pre Printed"),
("auto_printer", "Auto Printer"),
("electronic", "Electronic"),
],
default="electronic",
)