chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import account_move
@@ -0,0 +1,17 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class AccountMove(models.Model):
_inherit = 'account.move'
# Amazon invoices are made simplified by default, as currently it is not possible
# to get the vat number from the amazon api.
# As the invoice, if standard, will likely fail when sending it to the SII due to
# the lack of informations about the customer.
def _compute_l10n_es_is_simplified(self):
super()._compute_l10n_es_is_simplified()
for move in self:
if any(move.line_ids.sale_line_ids.mapped('amazon_item_ref')):
move.l10n_es_is_simplified = True