diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:53:34 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-01-09 14:53:34 +0700 |
| commit | 57dee69f10404610c9b2cac8268f78ebd92a9b19 (patch) | |
| tree | a5280fb2f04cee2c4359943cb2282999ba666fe1 /fixco_custom/models/account_payment.py | |
| parent | f0fdef1687cf29adb42fbb10512820088d8a9953 (diff) | |
| parent | 82c1232c08894dad3d6e326649785b5669a12077 (diff) | |
Merge branch 'main' of https://bitbucket.org/altafixco/fixco-addons into bills_add_item_po
Diffstat (limited to 'fixco_custom/models/account_payment.py')
| -rw-r--r-- | fixco_custom/models/account_payment.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fixco_custom/models/account_payment.py b/fixco_custom/models/account_payment.py new file mode 100644 index 0000000..2c7a5b4 --- /dev/null +++ b/fixco_custom/models/account_payment.py @@ -0,0 +1,11 @@ +from odoo import fields, models, api +from odoo.tools.misc import format_date, OrderedSet +from odoo.exceptions import UserError + +class AccountPayment(models.Model): + _inherit = 'account.payment' + + @api.constrains('journal_id') + def set_default_journal_id(self): + for rec in self: + rec.journal_id = 21
\ No newline at end of file |
