addons/l10n_hu_edi/wizard/account_move_debit.py
raw| 1 | from odoo import models |
| 2 | |
| 3 | |
| 4 | class AccountDebitNote(models.TransientModel): |
| 5 | _inherit = 'account.debit.note' |
| 6 | |
| 7 | def _prepare_default_values(self, move): |
| 8 | default_values = super()._prepare_default_values(move) |
| 9 | if move.company_id.account_fiscal_country_id.code == "HU": |
| 10 | default_values.update({ |
| 11 | 'delivery_date': move.delivery_date |
| 12 | }) |
| 13 | return default_values |