Domain Filter is not working on many2many field in OpenERP 7.0

被刻印的时光 ゝ 提交于 2019-12-24 04:30:05

问题


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.

来源:https://stackoverflow.com/questions/32919104/domain-filter-is-not-working-on-many2many-field-in-openerp-7-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!