On 10/17/2010 05:44 PM, "Cédric Krier" <[email protected]>" wrote:
On 17/10/10 17:18 +0200, Paul J Stevens wrote:
Do I need to really need to iterate over all fields of the invoice and
invoiceline models to determine the on_change(_with) fields, and call
those manually?
I don't think you should call all the on_change because on_change are a
typical GUI behavior. But in some cases, it could be easier and prevent
duplicate the code.
In your case, you can call the on_change_product or use the
product.customer_taxes_used and call the tax rule apply.
Thanks for the pointers. It's working now! I couldn't get the
on_change_product working, but using product.customer_taxes_used works
just fine.
--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
--
[email protected] mailing list