diff options
| author | Denis Ledoux <dle@openerp.com> | 2014-04-29 13:21:47 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@openerp.com> | 2014-04-29 13:21:47 +0200 |
| commit | b2e56a0128a3703dede79b40eb8e673fc69f1765 (patch) | |
| tree | 4d1ba9be2bab0fffccfff989e770bdfd0cace88b | |
| parent | 1b45edab2347967297558ba700ac99959f1c752d (diff) | |
[FIX] account_analytic_analysis: recurring invoice line, use the name passed in the product_id_change method
In addition, do not set the line description as the product name + product description, only the product description: same behavior than in invoices and sale orders
bzr revid: dle@openerp.com-20140429112147-hqfqd0y487s817n7
| -rw-r--r-- | addons/account_analytic_analysis/account_analytic_analysis.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/account_analytic_analysis/account_analytic_analysis.py b/addons/account_analytic_analysis/account_analytic_analysis.py index 50ebe476128..9f110ed78e6 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis.py +++ b/addons/account_analytic_analysis/account_analytic_analysis.py @@ -73,9 +73,7 @@ class account_analytic_invoice_line(osv.osv): result = {} res = self.pool.get('product.product').browse(cr, uid, product, context=context) - result.update({'name':res.partner_ref or False,'uom_id': uom_id or res.uom_id.id or False, 'price_unit': price_unit or res.list_price or 0.0}) - if res.description: - result['name'] += '\n'+res.description + result.update({'name': name or res.description or False,'uom_id': uom_id or res.uom_id.id or False, 'price_unit': price_unit or res.list_price or 0.0}) res_final = {'value':result} if result['uom_id'] != res.uom_id.id: |
