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

I have added new many2many fields into the wizard view and also put invoice filed of many2many fields

Field on py file :

'sup_inv_entries':fields.many2many('account.invoice', 'sup_inv_rel', 'sup_inv_id1', 'sup_new_inv_id', 'Invoice Entries'),

Field on xml view file:

<field name="sup_inv_entries" nolabel="1" domain="['|',('period_id','in',period_ids),('&amp;',('date_invoice','&gt;',date_from),('date_invoice','&lt;',date_to)),'&amp;',('type','=','in_invoice'),('state','=','open')]">

I want to make the filter invoice ids based on periods or date_invoice (from date and to date ) based on user selected scenario from the wizard.

Can any one help me how to achieve this ?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Filter Domain Field on Field แก้ไขแล้ว
2
ก.ย. 19
10748
2
เม.ย. 16
4095
0
มี.ค. 15
3836
1
มี.ค. 15
3829
0
มี.ค. 15
3581