hello, the default values is a full topic by itself. Collecting requirements and constraints is a good idea. I don't think your proposal does the trick, since default values must comply with basic security rules.
2016-05-23 11:36 GMT+02:00 Maxime Richez <[email protected]>: > Hello, > > Is it possible to define a default value in a field that depends on the > previously entered data? > > For example, I have a model with detail rows (product, quantity, > prix_unitaire, currency): > > By default the value of my currency is the currency of my company. > If I have to introduce more detail lines with a currency different from that > of my company, to avoid to select this currency every time, is it possible > to imagine that the default value of the currency come from the value of the > previous detail row (and if it's the first line the currency of the > company)? did the context keeps the last entered values? > > Thanks for your help... > > -- > You received this message because you are subscribed to the Google Groups > "tryton" group. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tryton/17aec7dd-f411-463d-8bbc-f7a64ad5adb3%40googlegroups.com. -- Dominique Chabord - SISalp Logiciel libre pour l'entreprise Tryton et open-source Odoo, OpenERP 18 avenue Beauregard 74960 Cran Gevrier 145A rue Alexandre Borrely 83000 Toulon tel(repondeur) +33(0)950274960 fax +33(0)955274960 mob +33(0)622616438 http://sisalp.fr http://openerp-online.fr -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/CAHZrxK6p9z2HF7V9E-GjZSNgObbEQ_Z4WrV164pv3ag8aiCfQA%40mail.gmail.com.
