| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | from odoo import models |
| 3 | |
| 4 | |
| 5 | class AccountMove(models.Model): |
| 6 | _inherit = 'account.move' |
| 7 | |
| 8 | def _compute_l10n_es_is_simplified(self): |
| 9 | super()._compute_l10n_es_is_simplified() |
| 10 | for move in self: |
| 11 | if move.pos_order_ids: |
| 12 | move.l10n_es_is_simplified = move.pos_order_ids[0].is_l10n_es_simplified_invoice |