Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4076 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
okt. 15
4873
1
okt. 22
3354
1
okt. 22
2447
1
mei 25
984
2
nov. 24
2188