fix: update account domain filters to use active state instead of deprecated flag

This commit is contained in:
Suherdy Yacob 2026-04-28 17:49:13 +07:00
parent d975966b70
commit c0d05bcff2

View File

@ -7,11 +7,11 @@ class PosConfig(models.Model):
'account.account',
string='100% Discount Income Account',
help='Account used for Income when an order has a 100% discount (0 total).',
domain="[('deprecated', '=', False)]"
domain="[('active', '=', True)]"
)
discount_100_expense_account_id = fields.Many2one(
'account.account',
string='100% Discount Expense Account',
help='Account used for Expense/Discount when an order has a 100% discount (0 total).',
domain="[('deprecated', '=', False)]"
domain="[('active', '=', True)]"
)