Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4650 Zobrazení

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
Zrušit

Which version of Odoo?

Related Posts Odpovědi Zobrazení Aktivita
1
zář 23
1328
1
lis 21
4522
0
kvě 21
2716
1
kvě 24
4734
3
bře 24
1541