Hello.
I have a field that works for the domain attribute, but doesn't work for attrs and options.
It seems to me that this is some sort of special use case of views (maybe mixed).
This is the XML for the domain:
<attribute name="domain">[('product_id', '=', parent.product_id), (picking_type_use_existing_lots, '=', True)]</attribute>
This is the XML for attrs:
<attribute name="attrs">{'can_create': [(picking_type_use_create_lots, '=', True)]}</attribute>
If I pass the field as string ('picking_type_use_create_lots') it seems like the UI engine evaluates it as such, not as the field value. If I try to run it as field (picking_type_use_create_lots) I get this error:
<class 'NameError'>: "name 'picking_type_use_create_lots' is not defined" while evaluating
"{'can_create': [(picking_type_use_create_lots, '=', True)]}"
Any ideas?
Thanks.