跳至內容
選單
此問題已被標幟
1 回覆
4601 瀏覽次數

i have field called 'emon' of type many2many 'emon':fields.many2many('ewi.recipe','ewi_diet_rel','eval_id','recipe_id','E_monday'),

And for the field 'etue' is it possible to give same relation as 'ewi_diet_rel' in wizard 'etue':fields.many2many('ewi.recipe','ewi_diet_rel','eval_id','recipe_id','E_tuesday'),

頭像
捨棄
最佳答案

Yes you can, but you must use another table for the second relation :

'emon':fields.many2many('ewi.recipe','ewi_diet_rel_emon','eval_id','recipe_id','E_monday'), 'etue':fields.many2many('ewi.recipe','ewi_diet_rel_etue','eval_id','recipe_id','E_tuesday'),

頭像
捨棄
作者

thank you THOMAS

相關帖文 回覆 瀏覽次數 活動
1
7月 18
3366
0
1月 16
3381
1
6月 15
13542
0
3月 15
7217
0
7月 22
2218