Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4526 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
filter_partner not working แก้ไขแล้ว
1
ก.ย. 23
1213
1
พ.ย. 21
4383
0
พ.ค. 21
2566
1
พ.ค. 24
4570
3
มี.ค. 24
1429