With function field, how can I save the value of the field unless the object is not in draft mode ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
3813
Vues
Hi,
I never tested with argument store, but should work, try :
in file view add this attribute in field :
attrs="{'store': [('state', '=', 'draft')]}"
update module and view.
naturally field state must be present as a field or in context.
Bye
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire
Please do not post duplicate questions. See http://help.openerp.com/question/5522/function-field/