Odoo Help

0

How to add Attachments field in an inherited module form in openerp??

By
divya
on 6/27/14, 3:28 AM 1,881 views

I have created field like <field name="attachment_ids"  widget="many2many_binary"/> in xml file

what i should write in py file for many2many_binary relation inside terms

'attachment_ids': fields.many2many('ir.attachment', 'message','message_id', 'attachment_id', 'Attachments'),

can any one plz explain total structure of py file of this in depth

0

Prakash

--Prakash--
3218
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 6/27/14, 3:47 AM

Refer the below link:-

https://doc.openerp.com/v6.0/developer/2_5_Objects_Fields_Methods/field_type.html/

fields.many2many('other.object.name', 'relation object', 'actual.object.id', 'other.object.id', 'Field Name')

https://www.odoo.com/forum/Help-1/question/Attach-many-files-in-a-binary-field-type-37823

 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 6/27/14, 3:28 AM
Seen: 1881 times
Last updated: 3/16/15, 8:10 AM