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

+2
View File
@@ -0,0 +1,2 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import pos_payment
+16
View File
@@ -0,0 +1,16 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class PosMakePayment(models.TransientModel):
_inherit = "pos.make.payment"
def check(self):
"""Override. EDI this order when it's paid through the backend."""
res = super().check()
order = self.env["pos.order"].browse(self.env.context.get("active_id", False))
if order.state == "paid" and order.l10n_br_is_avatax:
order._l10n_br_do_edi(save_avalara_pdf=True)
return res