Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4104 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
out. 15
4923
1
out. 22
3405
1
out. 22
2493
1
mai. 25
1038
2
nov. 24
2228