cron better exception management. show supplier commercial name in product card template. linters config
This commit is contained in:
parent
a812b4385d
commit
87dcb4e350
17 changed files with 104 additions and 100 deletions
|
|
@ -246,7 +246,7 @@ def _get_product_supplier_info(self, products):
|
|||
supplier_name = ""
|
||||
if product.seller_ids:
|
||||
partner = product.seller_ids[0].partner_id.sudo()
|
||||
supplier_name = partner.name or ""
|
||||
supplier_name = partner.company_name or partner.name or ""
|
||||
if partner.city:
|
||||
supplier_name += f" ({partner.city})"
|
||||
product_supplier_info[product.id] = supplier_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue