Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4117 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ott 15
4953
1
ott 22
3414
1
ott 22
2505
1
mag 25
1058
2
nov 24
2237