Default value from context parsed too late

Bug #1203617 reported by Yannick Gouin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Hi,

- We a basic action with a context { 'default_supplier': 1 } in order to create a "Supplier"
- In the form, the field "phone" is required for "Suppliers" : <field name="phone" attrs="{'required': [('supplier','=',True)]}"/>

The problem is that the field "phone" is not set as required (since I guess the default value from the action context are not computed yet). While if you untick the checkbox "Supplier" and tick it again, then the "phone" get required.

Is there any way to fix this ?

Thanks,
Yannick

Tags: maintenance
Changed in openerp-web:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.