Skip to content
Snippets Groups Projects
Commit 645f6482 authored by Priyanka Kakadiya's avatar Priyanka Kakadiya Committed by Thibault Delavallée
Browse files

[FIX] point_of_sale: update method name to avoid conflict with another method

Because of same method name point of sale's onchange method overrides sale's
onchange method. Sale's method is therefore not called anymore.

Fix related to commit https://github.com/odoo/odoo/commit/e434690fe3adf884222b84e16dac3b3dcc0b12ad. See task/issue ID #1854683.
Closes #25116.
parent a3d81597
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class ResConfigSettings(models.TransientModel):
], string="POS Pricelists", config_parameter='point_of_sale.pos_pricelist_setting')
@api.onchange('pos_sales_price')
def _onchange_sale_price(self):
def _onchange_pos_sales_price(self):
if not self.pos_sales_price:
self.pos_pricelist_setting = False
if self.pos_sales_price and not self.pos_pricelist_setting:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment