Hi All,

I had inherit 'stock.location', and add a new boolean field  called 
'staging'.

I try to change the original 'storage.location' field as below:
    storage_location = fields.Many2One(
        "stock.location", "Storage", states={
            'invisible': Eval('type') != 'warehouse',
            'readonly': ~Eval('active'),
            'required': Eval('type') == 'warehouse',
        },
        domain=[
            ('type', 'in', ['storage', 'view']),*('staging','=', False),*
            ['OR',
                ('parent', 'child_of', [Eval('id')]),
                ('parent', '=', None)]],
        depends=['type', 'active', 'id'])

At the domain, I add ('staging','=',False). 
When I checked the result, seem like it do not override the field?

Please advice

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/ba43f3b4-0396-4317-bad4-f46317d7ad46%40googlegroups.com.

Reply via email to