[FIX] product.uom: safer handling of factor/factor_inv in UI
authorMartin Trigaux <mat@openerp.com>
Thu, 9 Oct 2014 11:37:06 +0000 (13:37 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 22 Oct 2014 12:28:35 +0000 (14:28 +0200)
commit3a0af6af7b5a67dfb1ed196bd3e5da41c1dfa57a
tree4686b284fd100ae10486fa95f0b9628d6fd19307
parentfa2f7b86bff9cecad73ef14fdc1480c7bca2a584
[FIX] product.uom: safer handling of factor/factor_inv in UI

Add readonly attribute to avoid sending both factor and factor_inv value to the backend when saving.
This was possible if the user switched between uom_type to fill the two fields.
addons/product/product_view.xml