Reviewers: , Description: [trytond-dev] purchase: the description field in purchase line must be updated always with on_chang…
Please review this at http://codereview.tryton.org/863002/ Affected files: M purchase.py Index: purchase.py =================================================================== --- a/purchase.py +++ b/purchase.py @@ -1024,9 +1024,8 @@ if tax_ids: res['taxes'].extend(tax_ids) - if not self.description: - with Transaction().set_context(context): - res['description'] = Product(self.product.id).rec_name + with Transaction().set_context(context): + res['description'] = Product(self.product.id).rec_name self.unit_price = res['unit_price'] self.type = 'line'