From 75a1f525d94ea245f57bd6be105176e7eb75e4cb Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Wed, 21 Jan 2026 09:42:49 +0700 Subject: [PATCH] fix: Update income and discount account selection domains to use active field and bump module version to 19.0.1.0.0. --- __manifest__.py | 2 +- models/pos_payment_method.py | 4 ++-- views/pos_payment_method_views.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/__manifest__.py b/__manifest__.py index b316548..15e254f 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -15,7 +15,7 @@ # Categories can be used to filter modules in modules listing 'category': 'Point of Sale', - 'version': '17.0.1.0.0', + 'version': '19.0.1.0.0', # any module necessary for this one to work correctly 'depends': ['point_of_sale', 'pos_discount'], diff --git a/models/pos_payment_method.py b/models/pos_payment_method.py index 6868e25..cafa25e 100644 --- a/models/pos_payment_method.py +++ b/models/pos_payment_method.py @@ -8,13 +8,13 @@ class PosPaymentMethod(models.Model): income_account_id = fields.Many2one( 'account.account', string='Income Account', - domain=[('deprecated', '=', False)], + domain=[('active', '=', True)], help='Account used for income lines when splitting by payment method. ' 'If empty, the default income account from the product will be used.') discount_account_id = fields.Many2one( 'account.account', string='Discount Account', - domain=[('deprecated', '=', False)], + domain=[('active', '=', True)], help='Account used for discount product lines when splitting by payment method. ' 'If empty, the default discount account from the product will be used.') diff --git a/views/pos_payment_method_views.xml b/views/pos_payment_method_views.xml index 7716363..e3ef324 100644 --- a/views/pos_payment_method_views.xml +++ b/views/pos_payment_method_views.xml @@ -6,8 +6,8 @@ - - + +