Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2825 Представления

hi, I have to add a Boolean field in Incoming shipment line item and it should not be viewed in Delivery orders line item. But all the other fields in Incoming shipments should be present in Delivery orders?(tree view and form view)

I tried this code in xml.

 <xpath expr="/tree/field[@name='state']" position="before">
     <field name="accepted" context="{'picking_type': 'in'}"/>
     <field name="rejected" context="{'picking_type': 'in'}"/>
 </xpath>

But it is viewed in Incoming shipments and delivery orders? If you suggest me your views and ideas it will be helping me!!!

Аватар
Отменить

Add attrs for the field and make it invisible in delivery orders.

Автор

already i try but does not working

Автор

look type is a related field that only problem.

Лучший ответ

attrs="{'invisible': [('picking_type_code', '!=', 'incoming')]}"

Аватар
Отменить