Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Compute and Onchange after create
by
MoaHub, Graeme Gellatly
The only truly reliable ways for onchanges is the tests.Form class or an OCA module onchange_helper (something like that). But Form is dog slow, like 2 or 3 seconds sometimes and onchange_helper has its oddities too. For these new writable computed fields, my belief is that was kind of the point. Not the computation per se, but the very fact it has an inverse argument so in theory, both the computation and if written the inverse would be called. But tbh, I find them much harder to work with.
On Sat, Aug 5, 2023 at 2:28 AM Fernando La Chica <notifications@odoo-community.org> wrote:
I am building an API in Odoo 16.0. As we know, there are fields that can be computed (compute) and others that change their value (onchange) depending on the change in another one. Well, what I need to know is if there is a standard way for after creating the object ("model.create") to launch all these computations without having to worry about calling these methods_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
Compute and Onchange after create
byDisashop, Fernando La Chica-
Re: Compute and Onchange after create
byDIXMIT Consulting SLU, Enric Tobella Alomar -
Re: Compute and Onchange after create
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis
-