> Add default_get method in queue at end of start. and store default fields in 
> self.fields_with_defaults.

Why did you add this call within the callback for the first fields_get call? To 
only get the first level of fields instead of all fields in object?

Also, fields_with_default should be created in constructor/initialize of object 
itself.

And arguments to `each` callback are named incorrectly: it's val, key not key, 
val. They're used the right way, but called wrong: 
http://documentcloud.github.com/underscore/#each

> In this case we can not use _.difference because if default value in m2o/o2m 
> field then default_get field return (like :- partner_shipping_id) field name. 
> and self.required_fields store the partner_shipping_id/id so we need to check 
> with id. so I add the condition in _.filter.

ok
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-871625-ysa/+merge/79073
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-871625-ysa.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to