跳至内容
菜单
此问题已终结
1 回复
4707 查看

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
3447
0
1月 16
3482
1
6月 15
13641
0
3月 15
7349
0
7月 22
2324