Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4525 Lượt xem

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>
Ảnh đại diện
Huỷ bỏ

Which version of Odoo?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 23
1213
1
thg 11 21
4381
0
thg 5 21
2566
1
thg 5 24
4570
3
thg 3 24
1427