diff options
| author | Damien <5243814+kontrolix@users.noreply.github.com> | 2019-08-22 11:56:42 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-01-06 13:53:26 +0000 |
| commit | bd0348fe29745c4e03426289b29d30c0ba20b038 (patch) | |
| tree | 036745d4c74b34d969b061e987c6580a37408cfe /addons/sale_purchase | |
| parent | abc6dbdc765ac36a98d0e07efba62379ddf7e26b (diff) | |
[IMP] sale_purchase: delete unused code
closes odoo/odoo#35964
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/sale_purchase')
| -rw-r--r-- | addons/sale_purchase/models/sale_order.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/addons/sale_purchase/models/sale_order.py b/addons/sale_purchase/models/sale_order.py index f9bd52bcd2a..1f61eb6f827 100644 --- a/addons/sale_purchase/models/sale_order.py +++ b/addons/sale_purchase/models/sale_order.py @@ -225,15 +225,6 @@ class SaleOrderLine(models.Model): if purchase_order.currency_id and supplierinfo.currency_id != purchase_order.currency_id: price_unit = supplierinfo.currency_id.compute(price_unit, purchase_order.currency_id) - # purchase line description in supplier lang - product_in_supplier_lang = self.product_id.with_context( - lang=supplierinfo.name.lang, - partner_id=supplierinfo.name.id, - ) - name = '[%s] %s' % (self.product_id.default_code, product_in_supplier_lang.display_name) - if product_in_supplier_lang.description_purchase: - name += '\n' + product_in_supplier_lang.description_purchase - return { 'name': '[%s] %s' % (self.product_id.default_code, self.name) if self.product_id.default_code else self.name, 'product_qty': purchase_qty_uom, |
