Odoo Ayuda

0

0
1 Respuesta
-1
Avatar
--Haresh Kansara--

Odoo Application Engineer

I have completed odoo training from Odoo India, and i have formerly worked there as an application engineer. And currently works as an application engineer. 

I have worked on different projects like Sales, Purchase, MRP, Account etc. I have also worked on website development.

I can help you to:

- Develop new module

- Customise existing module

- Provide Odoo Functional / Technical training

Connect me at: https://www.linkedin.com/in/haresh-kansara-50048914b

Haresh Kansara India
2/3/19 3:43

Hello,

You can do like this.

Take one Binary field in model for storing XLS file like

file = fields.Binary('Label', filters='.xls', readonly=True)

and then do code when you have prepared file:

temp_file = base64.encodestring(prepared_file)

self.write({'file': temp_file})

# make sure convert prepared file based on content type

Accept and upvote answer if helpful

Thanks and Regards

Haresh Kansara

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