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

Example : 

class TableA(models.Model):
    a_ids = fields.Many2many('model.c', 'model_c_id')

 class TableB(models.Model):
    b_ids = fields.Many2many('model.c', 'model_c_id')

in table b i want to create function that pass value from a_ids field to b_ids field : ​
頭像
捨棄

Look into odoo tips: learnopenerp.blogspot.com

最佳答案

Hi,

Check this answer. you will get some idea about Many2many field writing.

https://stackoverflow.com/questions/54079315/how-to-add-update-and-delete-many2many-field-records-in-odoo-10

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 24
2069
4
1月 20
6352
0
2月 19
3520
1
6月 23
50798
1
2月 23
1782