From fc83c4846bd5f5713bed67b316f4b7ff726b4790 Mon Sep 17 00:00:00 2001 From: Naman Shah Date: Tue, 5 Mar 2024 14:35:14 +0530 Subject: [PATCH] [FIX] point_of_sale: allow branch company to select temporary account Before this commit: When the user creates a branch company, the pos(accounting) setting does not allow the selection of a default temporary account for the user. After this commit: The user is allowed to choose a temporary account from the branch company. Task-3775873 closes odoo/odoo#156478 Signed-off-by: Joseph Caburnay (jcb) --- addons/point_of_sale/models/res_config_settings.py | 2 +- addons/point_of_sale/views/res_config_settings_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/models/res_config_settings.py b/addons/point_of_sale/models/res_config_settings.py index 83f00601ab6..62b96786c95 100644 --- a/addons/point_of_sale/models/res_config_settings.py +++ b/addons/point_of_sale/models/res_config_settings.py @@ -38,7 +38,7 @@ class ResConfigSettings(models.TransientModel): module_pos_paytm = fields.Boolean(string="PayTM Payment Terminal", help="The transactions are processed by PayTM. Set your PayTM credentials on the related payment method.") module_pos_preparation_display = fields.Boolean(string="Preparation Display", help="Show orders on the preparation display screen.") update_stock_quantities = fields.Selection(related="company_id.point_of_sale_update_stock_quantities", readonly=False) - account_default_pos_receivable_account_id = fields.Many2one(string='Default Account Receivable (PoS)', related='company_id.account_default_pos_receivable_account_id', readonly=False) + account_default_pos_receivable_account_id = fields.Many2one(string='Default Account Receivable (PoS)', related='company_id.account_default_pos_receivable_account_id', readonly=False, check_company=True) barcode_nomenclature_id = fields.Many2one('barcode.nomenclature', related='company_id.nomenclature_id', readonly=False) is_kiosk_mode = fields.Boolean(string="Is Kiosk Mode", default=False) diff --git a/addons/point_of_sale/views/res_config_settings_views.xml b/addons/point_of_sale/views/res_config_settings_views.xml index 7c50c3a6da2..92c1c5bffc6 100644 --- a/addons/point_of_sale/views/res_config_settings_views.xml +++ b/addons/point_of_sale/views/res_config_settings_views.xml @@ -162,7 +162,7 @@
Intermediary account used for unidentified customers.
- +