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

Hi all

the properties field in sale.order.line model is a many2many field which display all the properties available and wont filter based on anything. So, I've created a field in sale_stock.py 'group_id': fields.many2one('mrp.property.group', 'Property Group', select=True), and changed the default property_ids field as below, 'property_ids': fields.many2many('mrp.property', 'sale_order_line_property_rel', 'order_id', 'property_id', 'Properties', readonly=True, states={'draft': [('readonly', False)]}, domain="[('group_id.name', '=', group_id.name)]"),

and changed sale_stock.xml <field name="group_id" widget="selection"/> <field name="property_ids" widget="selection" groups="sale.group_mrp_properties" domain="[('group_id.name', '=', 'group_id.name')]"/>

But i'm not getting any filter of the list so can any one please help me out?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
11月 20
5196
2
2月 24
1219
0
10月 17
2528
2
12月 24
11207
1
1月 23
5262