Odoo Ayuda

0

0
2 Respuestas
0
Avatar

Paresh Wagh India

--Paresh Wagh--

8521
| 4 2 5
Navi Mumbai, India
--Paresh Wagh--
Paresh Wagh India
6/8/19 21:42

Hi Levi: You also have the option of defining the field as a binary (odoo.fields.Binary) field. Attachments provide you the ability to attach multiple documents. The binary field will allow you to store one document in the binary field.

0
Avatar

Niyas Raphy India

--Niyas Raphy--
27521
| 7 7 11
Wayanad, Kerala, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy India
6/8/19 21:25

Hi,

See the below samples of adding Many2one and Many2Many field for storing files.

attachment_id = fields.Many2one('ir.attachment', string='Attachment', ondelete='cascade')

doc_attachment_id = fields.Many2many('ir.attachment', 'doc_attach_rel', 'doc_id', 'attach_id3', string="Attachment",
help='You can attach the copy of your document', copy=False)


Thanks

Realizar una pregunta
Writer
Keep Informed
1 seguidor(es)
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