Fix búsqueda de producto por nombre en el PoS y herecian deimpuesto por categoría
This commit is contained in:
parent
932fe0fd45
commit
c3049046df
2 changed files with 12 additions and 3 deletions
|
@ -23,7 +23,7 @@ class ProductProduct(models.Model):
|
|||
elif template_id:
|
||||
template = self.env["product.template"].browse(template_id)
|
||||
cat = template.categ_id
|
||||
if not cat and self.env.user.company_id.use_parent_categories_to_determine_taxes:
|
||||
if self.env.user.company_id.use_parent_categories_to_determine_taxes:
|
||||
while not cat.pos_categ_id and cat.parent_id:
|
||||
cat = cat.parent_id
|
||||
if cat:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue