[IMP] account_voucher: make the field tax_amount always readonly
authorMartin Trigaux <mat@openerp.com>
Mon, 18 Aug 2014 15:59:17 +0000 (17:59 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 18 Aug 2014 15:59:17 +0000 (17:59 +0200)
commitf572b27ec8cbf02ae633485d07458d838f1ad0aa
tree36a721a019819a7b31e7fd48bdf5bafef61b256a
parent85b08a75f616ff412a36a96ac5ae3c52e06898f1
[IMP] account_voucher: make the field tax_amount always readonly

The field tax_amount is fieled with onchanges and the compute_tax method. Setting a different value than the one computed by the system may lead to unbalanced move (which is obviously wrong).
In the future, handeling these operations by setting the correct value to the tax accounts would be better.
addons/account_voucher/account_voucher.py