mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 01:51:59 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -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",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue