[MERGE] forward port branch 10.0 up to fb2df13ea8
This commit is contained in:
@@ -997,7 +997,7 @@ class StockMove(models.Model):
|
||||
'views': [(view.id, 'form')],
|
||||
'view_id': view.id,
|
||||
'target': 'new',
|
||||
'res_id': self.id}
|
||||
'res_id': self.picking_id.id}
|
||||
show_picking = action_show_picking
|
||||
|
||||
# Quants management
|
||||
|
||||
@@ -201,8 +201,8 @@ class ProductProduct(models.Model):
|
||||
@api.model
|
||||
def _get_anglo_saxon_price_unit(self, uom=False):
|
||||
price = self.standard_price
|
||||
if not uom or self.uom_id.id == uom.id:
|
||||
return price
|
||||
if not self or not uom or self.uom_id.id == uom.id:
|
||||
return price or 0.0
|
||||
return self.uom_id._compute_price(price, uom)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user