[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) <jcb@odoo.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<div class="text-muted">
|
||||
Intermediary account used for unidentified customers.
|
||||
</div>
|
||||
<field name="account_default_pos_receivable_account_id" colspan="4" nolabel="1" domain="[('reconcile', '=', True), ('account_type', '=', 'asset_receivable'), ('company_id', '=', company_id)]"/>
|
||||
<field name="account_default_pos_receivable_account_id" colspan="4" nolabel="1" domain="[('reconcile', '=', True), ('account_type', '=', 'asset_receivable')]"/>
|
||||
</setting>
|
||||
<setting id="flexible_taxes" title="Choose a specific fiscal position at the order depending on the kind of customer (tax exempt, onsite vs. takeaway, etc.)." string="Flexible Taxes" help="Use fiscal positions to get different taxes by order">
|
||||
<field name="pos_tax_regime_selection"/>
|
||||
|
||||
Reference in New Issue
Block a user