Odoo Help

Welcome!

This community 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.

0

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

By
divya
on 6/27/14, 3:28 AM 1,657 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--
3173
| 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

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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