Odoo Help

0

0
1 Antwoord
0
Avatar

Yenthe Van Ginneken België

--Yenthe Van Ginneken--
25148
| 9 9 12
Turnhout, België
--Yenthe Van Ginneken--


Yenthe Van Ginneken België
11-07-19 03:47

Hi Jean,

You can indeed only imports data (XML/CSS/SCSS) with a .zip module in Odoo.
There is no way to directly create a field and add a function to it with studio but what you want to do is possible though. 
You can first create your new field with Studio and add it on the form. Then create an automated action
with the trigger condition set to 'Based on Form Modification' and fill in your field name in 'On change Fields trigger'.
Set the 'Action To Do' to 'Execute Python code and then you can execute your custom Python code from there. 

Note: If you can code Python functions and need to do more advanced operations it might be worth it to code it in your own module though? It is easier to keep track off if you do a lot of modifications and you still have more flexibility than through the frontend (for example with Python libraries).


Regards,
Yenthe

Stel een vraag
Schrijver
Labels
Blijf op de hoogte
1 volger(s)
Over deze 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