mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-25 03:22:02 +02:00
19.0 vanilla
This commit is contained in:
parent
6e54c1af6c
commit
3ca647e428
1087 changed files with 132065 additions and 108499 deletions
|
|
@ -13,7 +13,7 @@ class ResConfigSettings(models.TransientModel):
|
|||
|
||||
@api.depends('company_id', 'pos_module_pos_discount', 'pos_config_id')
|
||||
def _compute_pos_discount_product_id(self):
|
||||
default_product = self.env.ref("point_of_sale.product_product_consumable", raise_if_not_found=False) or self.env['product.product']
|
||||
default_product = self.env.ref("pos_discount.product_product_consumable", raise_if_not_found=False) or self.env['product.product']
|
||||
for res_config in self:
|
||||
discount_product = res_config.pos_config_id.discount_product_id or default_product
|
||||
if res_config.pos_module_pos_discount and (not discount_product.company_id or discount_product.company_id == res_config.company_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue