跳至內容
選單
此問題已被標幟
1 回覆
4571 瀏覽次數

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>
頭像
捨棄

Which version of Odoo?

相關帖文 回覆 瀏覽次數 活動
1
9月 23
1241
1
11月 21
4437
0
5月 21
2634
1
5月 24
4646
3
3月 24
1452