Fix bug introduced with changeset 930 of the module purchase

This commit is contained in:
jmartin 2015-01-21 11:00:55 +01:00
parent f06c30e343
commit 42b7a38981
1 changed files with 1 additions and 1 deletions

View File

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