Fix bug introduced with changeset 777 of the module sale

This commit is contained in:
jmartin 2015-01-21 10:50:29 +01:00
parent eeb042d8e7
commit f06c30e343
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class ProductOneClickView(ModelView):
Template = Pool().get('product.template')
template = Template(id=None, default_uom=self.default_uom,
salable=self.salable, sale_uom=self.sale_uom)
return template.on_change_with_sale_uom()
return template.on_change_default_uom().get('sale_uom', None)
@fields.depends('default_uom', 'purchase_uom', 'purchasable')
def on_change_with_purchase_uom(self):