Skip to content

Commit

Permalink
squash! [12.0][MIG] sale_order_line_description: Migration to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedhagag authored and OCA-git-bot committed Aug 30, 2019
1 parent cc9a077 commit c25825e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sale_order_line_description/models/sale_order_line.py
Expand Up @@ -17,7 +17,10 @@ def product_id_change(self):
'sale_order_line_description.'
'group_use_product_description_per_so_line') and
self.product_id.description_sale):
self.name = self.product_id.with_context(
lang=self.order_id.partner_id.lang,
).description_sale
product = self.product_id
if self.order_id.partner_id:
product = product.with_context(
lang=self.order_id.partner_id.lang,
)
self.name = product.description_sale
return res

0 comments on commit c25825e

Please sign in to comment.