hi i am creating many2many fields in openerp 7.0 wizards,and i am getting the value as empty list if i select the values also ,what is the problem ??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
I fixed the issue by giving different relation name for many2many relation table such as field1 :fields.many2many('res.partner','some_rel','curr_id','res_id') field2 :fields.many2many('res.partner','some_rel1','curr_id','res_id')
Can you help me to do the same
You just can ignore the rel, field1 and field2 attributes. I just made a wizard relating to attachments by adding field: fields.many2many("ir.attachments", string="Attachment")
and it works.
You need to fill that relation in _defaults by a method using following pattern:
def _get_default_attachment(self, cr, uid, context=None):
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Relations between two transient models in a Wizard
Diselesaikan
|
|
1
Feb 20
|
5936 | |
|
1
Feb 24
|
1952 | ||
|
0
Jul 24
|
2985 | ||
|
0
Jul 22
|
60 | ||
|
1
Jul 22
|
2858 |