[FIX] sale: wrong forwardport

This reverts commits ca40236 and 4ed5d65. The commits were developed in
v8.0 and were not meant to be forward ported to 9.0.
This commit is contained in:
Nicolas Martinelli
2016-02-25 15:45:58 +01:00
parent 813b6a84ab
commit 67edccbc7f
-9
View File
@@ -760,15 +760,6 @@ class SaleOrderLine(models.Model):
raise UserError(_('You can not remove a sale order line.\nDiscard changes and try setting the quantity to 0.'))
return super(SaleOrderLine, self).unlink()
def onchange_product_uom(self, cursor, user, ids, pricelist, product, qty=0,
uom=False, qty_uos=0, uos=False, name='', partner_id=False,
lang=False, update_tax=True, date_order=False, fiscal_position=False, context=None):
ctx = dict(context or {}, fiscal_position=fiscal_position)
return self.product_uom_change(cursor, user, ids, pricelist, product,
qty=qty, uom=uom, qty_uos=qty_uos, uos=uos, name=name,
partner_id=partner_id, lang=lang, update_tax=update_tax,
date_order=date_order, context=ctx)
@api.multi
def _get_delivered_qty(self):
'''