This question has been flagged
3 Replies
6847 Views

I have created an App with Odoo Studio. I now want to add python code for business logic. How do i do that??



Avatar
Discard
Best Answer

This is an old question and Odoo Studio now has more functionality, but the principle remains the same.  If you want to add business logic to Odoo Studio there are a few ways to do it:

  • Automated Actions and Server Actions (which can use Python Code)

  • Stages 

  • Use Domain in XML to limit what can be selected

  • Setup Record Rules 

The first two together can be a type of workflow.  More thoughts on Odoo studio here.

If you really want to do development then odoo.sh is integrated with GitHub.

Avatar
Discard
Author Best Answer

After you create an app with Odoo Studio, I need clarifications can you help clarify the following:

  • Is there an addon folder created along with this App. I know Odoo loads code for addons into the database, but when you now want to write python code, in which folder do you save this code?

  • If you are supposed to manually create a folder for storing your python code, how do you link this code to your app?



Avatar
Discard

Odoo Studio doesn't generate program code and so there aren't any folders. There is an option to export, but that is designed for importing into another database.

Best Answer

You can define server actions..

Avatar
Discard