跳至內容
選單
此問題已被標幟
1 回覆
4098 瀏覽次數

OE13

When entering a Sale Order in Odoo, the Salesperson field is linked with an active user, meaning that a Sale Order cannot be entered with the Salesperson is not using the system...

Is there another solution than modifying the domain so that inactive user are not excluded ?

Regards

Maurice

頭像
捨棄
最佳答案

Hi,

For this you can inherit and add active_test False in the context. See the below code,

<record id="sale_order_inherit" model="ir.ui.view">
<field name="name">sale.order.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<field name="user_id" position="attributes">
<attribute name="context">{'active_test': False}</attribute>
</field>
</field>
</record>

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
10月 15
4919
1
10月 22
3374
1
10月 22
2488
1
5月 25
1029
2
11月 24
2219