跳至內容
選單
此問題已被標幟
4224 瀏覽次數

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 ?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 19
10730
2
4月 16
4056
0
3月 15
3818
1
3月 15
3815
0
3月 15
3540