Search 1.9 billion lines of Odoo code on GitHub

onchange_helper

Author: Akretion,Camptocamp,Odoo Community Association (OCA)
License: AGPL-3
Branch: 16.0
Repository: brain-tec/server-tools
Dependencies: base
Languages: HTML (374, 55.9%), PO File (123, 18.4%), Python (84, 12.6%), and reStructuredText (88, 13.2%)
Other branches: 10.0, 10.0-ocabot-merge-pr-1567-by-dreispt-bump-patch, 10.0-ocabot-merge-pr-1720-by-dreispt-bump-patch, 10.0.selenium_demo, 11.0, 12.0, 12.0-ocabot-merge-pr-1625-by-gurneyalex-bump-major, 12.0-ocabot-merge-pr-1891-by-dreispt-bump-minor, 12.0-ocabot-merge-pr-2101-by-dreispt-bump-patch, 13.0, 13.0-ocabot-merge-pr-1764-by-dreispt-bump-nobump, 13.0-ocabot-merge-pr-1776-by-moylop260-bump-nobump, 13.0-ocabot-merge-pr-1837-by-simahawk-bump-nobump, 13.0-ocabot-merge-pr-1887-by-dreispt-bump-nobump, 13.0-ocabot-merge-pr-2200-by-LoisRForgeFlow-bump-nobump, 14.0, 14.0-ocabot-merge-pr-2022-by-dreispt-bump-nobump, 14.0-ocabot-merge-pr-2073-by-dreispt-bump-nobump, 14.0-ocabot-merge-pr-2073-by-pedrobaeza-bump-nobump, 14.0-ocabot-merge-pr-2083-by-dreispt-bump-nobump, 14.0-ocabot-merge-pr-2179-by-moylop260-bump-nobump, 14.0-ocabot-merge-pr-2189-by-lmignon-bump-minor, 14.0-ocabot-merge-pr-2190-by-pedrobaeza-bump-patch, 14.0-ocabot-merge-pr-2198-by-pedrobaeza-bump-minor, 14.0-ocabot-merge-pr-2198-by-sebalix-bump-minor, 14.0-ocabot-merge-pr-2451-by-nimarosa-bump-patch, 14.0-ocabot-update-dotfiles, 15.0, 15.0-ocabot-update-dotfiles, 15.0-poc-spellcheck, 15.0.project_GE_578, 15.0.project_MI_465, 15.0.project_SA_650, hast1_11.0_Migration_for_EQ, rafaelbn-patch-1, and sbidoul-patch-1
Other repositories: 001101/server-tools, 020cui/server-tools, 0yik/ak-odoo-incubator, 0yik/server-tools, 111sree/server-tools, 2FM/server-tools, 50611/server-tools, 5songHb/server-tools, AITIC/server-tools, AMhadhbi/server-tools, AfroMonkey/l10n_cr, Albin-John/server-tools, AlceConsorcio/server-tools, Alex-Woo/server-tools, Alfa-90/server-tools, App247/server-tools, ArkanSystem/server-tools, Artielkami/server-tools, BCDR/server-tools, Banetese/server-tools, BradooDev/server-tools, Bubbles-IT/server-tools, Burakebf/server-tools, CB-Gran-Canaria/server-tools, CGenie/server-tools, CRLibre/fe-hacienda-cr-odoo, Callino/server-tools, Cgruppo/server-tools, ChanFeei/server-tools, Chandresh-SerpentCS/server-tools, Change2improve/server-tools, ChinaShrimp/server-tools, CiaranCheng/server-tools, ClearCorp/oca-server-tools, CodeFishEG/server-tools, Colorlessgold/server-tools, ComitorDevTeam/server-tools, CompassionCH/server-tools, Comunitea/server-tools, ContrerasTorrez/server-tools, CrazyJET/server-tools, CustomOdoo/server-tools, DITIntl/server-tools, Danielzhulin/server-tools, DevMohamedFci/server-tools, Dgaroc/server-tools, Digital5-Odoo/server-tools, Dike90/server-tools, Dobtor-OCA/server-tools, Domatix/server-tools, DucTruongKomit/server-tools, DulingLai/server-tools, EBII/ak-odoo-incubator, EBII/server-tools, ERPLibre/server-tools, EssentNovaTeam/server-tools, FernandoCarlosGarcia/server-tools, FernandoRomera/server-tools, ForgeFlow/server-tools, GSLabIt/server-tools, Gabinete-Digital/server-tools, Gebesa-Dev/server-tools, GleydsonHudson/server-tools, GlobalManager/server-tools, Glue-Software-Engineering-AG/server-tools, Gofekra/server-tools, GreyShim/server-tools, GrupoAlvamex/server-tools, GuSWRolland/server-tools, Guobower/OCA-server-tools, HarshalBhoir/server-tools, Hellyna/server-tools, HomerDeoDatu/server-tools, Hothua/server-tools, Ingeos/server-tools, Intesco2-0/server-tools, IvanShirokikh/server-tools, Jagdish-Panchal/server-tools, JaimeAvellaneda/server-tools, Jarsa-dev/server-tools, Jarsa/server-tools, JayVora-SerpentCS/server-tools, Jeisonpernia/server-tools, JibenCL/server-tools, Johnvonthegreat/server-tools, JuaniFreedoo/server-tools, JuniorKRnd/server-tools, Kayuulab/server-tools, Kiplangatdan/server-tools, Koesj/server-tools, KonaERP/server-tools, Korynkai/server-tools, KottmannM/server-tools, LasLabs/server-tools, LevelPrime/server-tools, LlywelynLi/server-tools, LourenzoH/server-tools, Mahmoud-Alaa-Eldeen/server-tools, Manuel-Dellisse/server-tools, MariajMesa/server-tools, MasterBlaster479/server-tools, MathBenTech/server-tools, MediaJockey/server-tools, Mefistous/server-tools, Melodivo/server-tools, MindAndGo/server-tools, MjAbuz/server-tools, Morgana-Madamal/server-tools, MrFangD/server-tools, NGTS-AUS/server-tools, NL66278/server-tools, NeatNerdPrime/server-tools, Nowheresly/server-tools, Numigi/server-tools, OCA-MUK/server-tools, OCA/server-tools, ORETEK/server-tools, OctoComputer/server-tools, Odoo-10-test/l10n_cr, Odoo-Italia-Associazione/server-tools, OdooBulgaria/ak-odoo-incubator, OdooIndonesia/server-tools, OpenAT/ak-odoo-incubator, Othniel1796/server-tools, OutillageStEtienne/server-tools, PCatinean/server-tools, PESOL/server-tools, PieterPaulussen/server-tools, PlanetaTIC/server-tools, Ppamungkas/server-tools, PrenorSistemas/server-tools, QubiQ/server-tools, RL-OtherApps/ak-odoo-incubator, Rad0van/server-tools, RealSolutionsLux/server-tools, Reinhard-sheng/server-tools, SanteLibre/server-tools, Sarfarazsajjad/server-tools, ScopeaFrance/server-tools, SequarSrl/server-tools, SeuMarco/server-tools, SilviaLeonSanchez/server-tools, SilvioGregorini/server-tools, SimoRubi/server-tools, SimoneVagile/server-tools, SokreamPhanqrl/server-tools, SportPursuit/server-tools, StefanRijnhart/server-tools, Sunnyshine008/server-tools, Syci-Consulting/server-tools, TDu/server-tools, TRESCLOUD/server-tools, Tecnativa/server-tools, TemosEngenharia/server-tools, Therp/server-tools, Thorncrag/server-tools, TimLai125/server-tools, Tonow-c2c/server-tools, TradePilotLLC/server-tools, UakamiStudio/server-tools, Ufano/l10n_cr, UnknownInfo/server-tools, VanMoof/server-tools, VasiliyKorobatov/server-tools, Vauxoo/server-tools, VisiionSolucionesTecnologicas/server-tools, VitalPet/server-tools, Wadios/server-tools, Yaman-als/server-tools, YannickB/server-tools, YogeshMahera-SerpentCS/server-tools, aadarsh977/server-tools, aaltinisik/server-tools, abakus-it/server-tools, abdulhalim-cu/server-tools, abdulrhmans/server-tools, acordobag/fe-hacienda-cr-odoo, acsone/ak-odoo-incubator, acsone/server-tools, acsonefho/server-tools, adekock11/server-tools, adhoc-dev/server-tools, adolfoeliazat/server-tools, adriansteel/server-tools, adrienpeiffer/server-tools, agenterp/server-tools, agknz/server-tools, ahilali/server-tools, ahmed3bdelhady88/server-tools, aitorbouzas/server-tools, ajaychauhan727/server-tools, ajayjaviya/server-tools, ajinvn2019/server-tools, akhdaniel/server-tools, akhilpsivan01/server-tools, akretion/ak-odoo-incubator, akretion/server-tools, akurey/l10n_cr, alan80080/server-tools, albertvimlet/server-tools, alecvinent/server-tools, alejofdezm/fe-hacienda-cr-odoo, alesisjoan/server-tools, alessavindell/server-tools, alfadil/server-tools, algiopensource/server-tools, algolo/l10n_cr, alpham/server-tools, altoch/server-tools, amcor/server-tools, amebalibre/server-tools, amendoncabh/server-tools, anasallaham/server-tools, anassahmed/server-tools, andriisem/server-tools, anhvu-sg/server-tools, anodino-dev/server-tools, ansinaesmejor/server-tools, antilhue/server-tools, antonyrajserpentcs/server-tools, apachesep/server-tools, apertoso/server-tools, apetbiz/server-tools, arafatx/server-tools, area-scm/server-tools, aremili/server-tools, aroodooteam/server-tools, artux404/server-tools, ateneolab/fe-hacienda-cr-odoo, aurestic/server-tools, avanzosc/server-tools, avoinsystems/server-tools, aymanshow/server-tools, azmeuk/server-tools, bacgdev/server-tools, bacgroup/server-tools, bala07123/server-tools, bangil0/server-tools, bealdav/server-tools, bicomm/server-tools, bishalgit/server-tools-1, bjccdsrlcr/server-tools, blooparksystems/server-tools, bmya/server-tools, bodi000/server-tools, boky1993/server-tools, boutitinizar/server-tools, brainbeanapps/server-tools, brocoloco/l10n_cr, bud-e/server-tools, bvkl/server-tools, camptocamp/ak-odoo-incubator, camptocamp/server-tools, captivea-dcr/server-tools, cedvict/server-tools, charlit02390/l10n_cr, chdjdan/server-tools, cheikhousy/server-tools, chenwfal/server-tools, chianggq/server-tools, claro5/server-tools, codewareuae/server-tools, cogitoweb/server-tools, connect-to-ak/server-tools, coopiteasy/server-tools, corsojulian7/server-tools, cristinamartinrod/server-tools, crnd-inc/server-tools, cuongpk/server-tools, dafeza/l10n_cr, dalal-intellisoft/server-tools, dalhyncarrillo/l10n_cr, damdam-s/server-tools, damendieta/server-tools, danger89/server-tools, dani-xtendoo/server-tools, danimaribeiro/server-tools, daramousk/server-tools, davidwah/server-tools, ddico/server-tools, ddufresne/server-tools, delgerS/server-tools, dennybiasiolli/server-tools, dev-tanvir/server-tools, dev00007/server-tools, devang-dreambits/server-tools, diagramsoftware/server-tools, diegobgl/server-tools, diggy128/server-tools, dipakthapaofficial/server-tools, diverfr/server-tools, dmp16/server-tools, dmsergio/server-tools, dndoanh/server-tools, dong-z/server-tools, dperaltab/server-tools, druidoo-dev/server-tools, dsasoftware/ak-odoo-incubator, dsonnet/server-tools, duyhnguyen/server-tools, eLBati/server-tools, ebirbe/server-tools, ecosoft-odoo/server-tools, edsersolis/server-tools, eezee-it/server-tools, elicoidal/server-tools, elperrofarelo/server-tools, emagdalenaC2i/server-tools, enocare/server-tools, erfanjahanshahlo/server-tools, ermannognan/server-tools, esantos-octagono/server-tools, etobella/server-tools, eversatis/server-tools, ewac-nl/server-tools, exosoftware/oca-server-tools, ezdoo/server-tools, factorlibre/server-tools, fanha99/server-tools, fashkl/server-tools, felixvillafranca/server-tools, ferdiansahgg/server-tools, findsomeoneyys/server-tools, florian-dacosta/ak-odoo-incubator, flosslab/server-tools, fmdl/server-tools, focusate/oca-server-tools, forkme7/server-tools, foutoucour/server-tools, fslibre/server-tools, fss-solutions/fe-hacienda-cr-odoo, gab-net/server-tools, gabrielo77/server-tools, gastonfeng/server-tools, gavindav/server-tools, gdgellatly/server-tools, geocascantea/l10n_cr, gitguohao/server-tools, goanzaloo/server-tools, gordan-cuic/server-tools, grant-thornton/server-tools, grap/server-tools, grindtildeath/server-tools, groventure/server-tools, guandalf/server-tools, guewen/server-tools, gurneyalex/server-tools, gustavovalverde/server-tools, gxbsst/server-tools, gzanelli/server-tools, habbaba/server-tools, hadjerBachiri/ak-odoo-incubator, haidd/server-tools, haublang/server-tools, hbrunn/server-tools, hdb1234/server-tools, henrryyanez/server-tools, hhgabelgaard/server-tools, hibou-io/oca-server-tools, hieulucky111/server-tools, hiisoc/server-tools, hinfo506/l10n_cr, hinfo506/server-tools, hippe-67/server-tools, hokhyk/server-tools, holdenrehg/server-tools, hparfr/server-tools, hq8399/server-tools, huntergps/server-tools, hvcabaim/server-tools, i-vyshnevska/server-tools, iRichGit/server-tools, iamyeonhan/ak-odoo-incubator, ibanh/server-tools, ideaspositivas-group/server-tools, igallart/server-tools, igor-mitin/server-tools, initOS/server-tools, insscn/server-tools, intero-chz/server-tools, invitu/server-tools, ip-candres/server-tools, itblabla/server-tools, ixor3/server-tools, izzihector/server-tools, j-zaballa/server-tools, jaballate/server-tools, jackxusho/server-tools, jacky82669513/server-tools, janverb/server-tools, jaosss/server-tools, jaullo/l10n_cr, jcarlosmontoya/server-tools, jeanpaul-mupagasi/server-tools, jeroen7s/server-tools, jesmar81/server-tools, jimmyec/server-tools, jjscarafia/server-tools, jmorgannz/server-tools, jnegrete/server-tools, joserprieto/server-tools, joshuajan/server-tools, josueBulle/server-tools, josuf567/server-tools, jphatig/server-tools, jriveros/server-tools, julenalgios/server-tools, julianram/server-tools, kait-avalah/server-tools, kamilmuhammed/server-tools, kamsir/server-tools, kararaMohamed/server-tools, katyukha/server-tools, kelldave/server-tools, kevin070982/server-tools, kevinkhao/ak-odoo-incubator, kikopeiro/server-tools, kittiu/server-tools, kmee/server-tools, kos94ok-3D/server-tools, lasley/server-tools, leemannd/server-tools, legalsylvain/server-tools, lembregtse/server-tools, leonidasthe300/server-tools, lfreeke/server-tools, libregob/server-tools, lideritjnma/server-tools, liehu1/server-tools, lilotter45/server-tools, lincersolucoes/oca-server-tools, liweijie0812/server-tools, lmoram/l10n_cr, loftwah/server-tools, lonelyleaves/server-tools, luistorresm/server-tools, lukebranch/server-tools, magedmnb/server-tools, magnuscolors/ak-odoo-incubator, magnuscolors/server-tools, maherjaballi/server-tools, makeplerc/fe-hacienda-cr-odoo, mamcode/server-tools, marcelomora/server-tools, marionumza/ak-odoo-incubator, mart-e/server-tools, maulik-raval/server-tools, mehdi-ghezal/server-tools, merchise-autrement/server-tools, michotm/server-tools, mikolodz/server-tools, minhyk/server-tools, minorisa/server-tools, mivilsoft/server-tools, mjadily/server-tools, modoolar/server-tools, mohamedhagag/server-tools, monksoftware/server-tools, msdeek/server-tools, mulaudzicalvin/server-tools, multidadosti-erp/server-tools, myonnet/oca-server-tools, mysticalis/server-tools, nabiforks/server-tools, nabima/server-tools, nadiaafa/server-tools, nebras-solutions/server-tools, necrodevz/server-tools, nehaksolves/server-tools, nehemiascr/fe-hacienda-cr-odoo, netoodoo/server-tools, newtratip/server-tools, nguyenductamlhp/server-tools, nicolasjelincic/server-tools, nilshamerlinck/server-tools, niulinlnc/server-tools, njeudy/server-tools, nodoo/server-tools, novacode-nl/server-tools, novawish/server-tools, ntsirintanis/server-tools, nuobit/server-tools, odof/server-tools, odoo-brazil/server-tools, odoo247/server-tools, odooerpdevelopers/server-tools, odoogap/server-tools, odoosoft/server-tools, odoospace/server-tools, omalbastin/server-tools, one2pret/server-tools, onesteinbv/server-tools, onurugur/server-tools, open-net-sarl/server-tools, open2bizz/server-tools, osbzr/gooderp_extra, osiell/server-tools, osipaas/server-tools, ovnicraft/server-tools, p-tombez/server-tools, percypalomino/server-tools, petrus-v/server-tools, phillipstack/server-tools, phucngta/server-tools, piensom/server-tools, popcomputadores-desenv/server-tools, praxigento/oca-server-tools, presenceverte/server-tools, programadorzurita/server-tools, pscloud/server-tools, pythoner-3k/server-tools, qtheuret/server-tools, quentinDupont/server-tools, raizs/server-tools, ravishekharco/server-tools, raycollazo/server-tools, rdeheele/server-tools, redcor/server-tools, revstech/server-tools, rezaakba123/server-tools, richar-osse/server-tools, rifki/server-tools, rm-jamotion/server-tools, robertsvx27/server-tools, romendil/server-tools, ronozoro/server-tools, royalline1/server-tools, rrcfesc/server-tools, rrgaona/server-tools, rsmolyazhenko/server-tools, rsullivan2704/server-tools, rudisulistyo/server-tools, ruifranco/server-tools, rven/server-tools, rwfnf/server-tools, rwsdigital/odoo-server-tools, sadeqamin/server-tools, sailguest/server-tools, sanube/server-tools, savoirfairelinux/server-tools, sc4you/ak-odoo-incubator, schout-it/server-tools, sebalix/server-tools, selim-b/server-tools, sematicshood/flectra, sergiocorato/server-tools, serpentcs-dev1/server-tools, sewisoft/server-tools, shepilov-vladislav/server-tools, simahawk/server-tools, simone/server-tools, skmezanul/server-tools, skukered/server-tools, skyoj/server-tools, smile-888/server-tools, smurf-U/server-tools, sodexis/server-tools, soeethiha/server-tools, solvosci/server-tools, spacemonkeythe/server-tools, ssaid/server-tools, steingabelgaard/server-tools, subteno-it/server-tools, sunflowerit/server-tools, sunshineLhj/server-tools, superjiel/server-tools, suprielfath/server-tools, swbs-co/server-tools, sylvainvh/server-tools, sysprocesarcastro/server-tools, t-np/server-tools, tafaRU/server-tools, takinobori/oca-server-tools, tansadio/server-tools, tarteo/server-tools, tegin/server-tools, thinkopensolutions/oca-server-tools, tirma-sa/server-tools, tmasson/server-tools, tongjiou/server-tools, tonygalmiche/server-tools, traviswaelbro/server-tools, trevi-software/server-tools, trobz/server-tools, tschanzt/server-tools, tsengeagle/server-tools, tuanna7593/server-tools, tusharkwagh99/server-tools, unitek-solusi/OCA-server-tools, ursais/server-tools, valenciaricardos/ak-odoo-incubator, valenciaricardos/server-tools, valentinthirion/server-tools, valmarnet/server-tools, vcloud9ray/server-tools, vdedyukhin/server-tools, ventor-tech/server-tools, versada/ak-odoo-incubator, versada/server-tools, victoralmau/server-tools, vidtsin/ak-odoo-incubator, vinaybhawsar/server-tools, vmelnych/server-tools, westlyou/ak-odoo-incubator, westlyou/server-tools, wilcobergacker/server-tools, willmakenoise/server-tools, wowerliu/server-tools, wuhuizhong/server-tools, www3838438/server-tools, xAlphaOmega/server-tools, xcgd/server-tools, xhair/server-tools, xichun/server-tools, xpansa/server-tools, xtjie/server-tools, xuanmu/server-tools, xwh123807/server-tools, xwh1238070/server-tools, yalabsio/server-tools, ycp1015/server-tools, yelizariev/server-tools, ygdmxy/server-tools, yogesh-serpentcs/server-tools, ypapouin/server-tools, yusniermatos/server-tools, yuzhengxing/server-tools, yvaucher/server-env, zambee/server-tools, zamberjo/server-tools, zarumaru/server-tools, zeroincombenze/server-tools, zhaohengzeng/server-tools, zhaohuaw/server-tools, and zhujin001032/server-tools

<h1 class="title">Onchange Helper</h1> <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/16.0/onchange_helper"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-onchange_helper"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/149/16.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This is a technical module. Its goal is to ease the play of onchange method directly called from Python code.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>To use this module, you need to:</p> <ul class="simple"> <li>depend on this module</li> <li>call <cite>yourmodel.play_onchanges(values, ['field'])</cite></li> </ul> <p>Example if you want to create a sale order and you want to get the values relative to partner_id field (as if you fill the field from UI)</p> <blockquote> <p><cite>vals = {'partner_id': 1}</cite></p> <p><cite>vals = self.env['sale.order'].play_onchanges(vals, ['partner_id'])</cite></p> </blockquote> <p>Then, <cite>vals</cite> will be updated with partner_invoice_id, partner_shipping_id, pricelist_id, etc...</p> <p>Default values will be used to process onchange methods, if respective fields are not set in <cite>vals</cite>. You can get them if you pass fields name in the list of fields.</p> <blockquote> <p><cite>vals = {'partner_id': 1}</cite></p> <p><cite>vals = self.env['sale.order'].play_onchanges(vals, ['partner_id', 'date_order'])</cite></p> </blockquote> <p><cite>vals</cite> will contain, in addition to the changed values, the default value for <cite>date_order</cite></p> <p>You can also use it on existing record for example:</p> <blockquote> <p><cite>vals = {'partner_shipping_id': 1}</cite></p> <p><cite>vals = sale.play_onchanges(vals, ['partner_shipping_id'])</cite></p> </blockquote> <p>Then the onchange will be played with the vals passed and the existing vals of the sale. <cite>vals</cite> will be updated with partner_invoice_id, pricelist_id, etc..</p> <p>Behind the scene, <cite>play_onchanges</cite> will execute <strong>all the methods</strong> registered for the list of changed fields, so you do not have to call manually each onchange. To avoid performance issue when the method is called on a record, the record will be transformed into a memory record before calling the registered methods to avoid to trigger SQL updates command when values are assigned to the record by the onchange</p> <p>Notes:</p> <ul class="simple"> <li>Order in onchange_fields is very important as onchanges methods will be played in that order.</li> <li>If you use memory object in <cite>vals</cite>, be award that onchange method in base model call <cite>self.invalidate_cache()</cite> that reset it.</li> </ul> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2> <p>Note that onchanges tend to disappear due to the introduction of 'computed stored readonly False fields' in most cases. When migrating, it is best to prefer changing it to that way instead of using this module.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20onchange_helper%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Akretion</li> <li>Camptocamp</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Guewen Baconnier &lt;<a class="reference external" href="mailto:guewen.baconnier&#64;camptocamp.com">guewen.baconnier&#64;camptocamp.com</a>&gt;</li> <li>Florian da Costa &lt;<a class="reference external" href="mailto:florian.dacosta&#64;akretion.com">florian.dacosta&#64;akretion.com</a>&gt;</li> <li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li> <li>Souheil Bejaoui &lt;<a class="reference external" href="mailto:souheil.bejaoui&#64;acsone.eu">souheil.bejaoui&#64;acsone.eu</a>&gt;</li> <li>Kevin Khao &lt;<a class="reference external" href="mailto:kevin.khao&#64;akretion.com">kevin.khao&#64;akretion.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/16.0/onchange_helper">OCA/server-tools</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>