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

I want to use the user's current company as my criteria for the domain filter.

Is there a way to do it on xml? or in python method? Thanks in advance.

The below code has error

Error: AttributeError: object has no attribute 'company_name'
<record id="action" model="ir.actions.act_window">
<field name="name">Payments</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">modelname</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('company', '=', uid.company_name)]</field>
</record>
Avatar
Abbandona

Which version of Odoo?

Post correlati Risposte Visualizzazioni Attività
1
set 23
1221
1
nov 21
4395
0
mag 21
2574
1
mag 24
4576
3
mar 24
1433