Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4140 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Okt. 15
4979
1
Okt. 22
3448
1
Okt. 22
2537
1
Mai 25
1101
2
Nov. 24
2263