FAQ - odoo-ps/pshk-process GitHub Wiki
FAQ
Here are some useful tips and questions that often come up. I will include tags on each part so that you can search them on this page by using Ctrl+F
How to Get Good?
#get
#good
#lets
#go
DO MORE TASKS!
How to Check If Your Module Works
EVERY record in a module is a stored data. You can pretty much search anything.
Go to dashboard and put in the type of data you're looking for
How do I Get External ID?
#external
#identifier
All objects have an External ID.
Especially in Saas, very often you will be asked for external ID of something (models, fields, views, etc.)
Works if it is included in Standard Odoo (not through studio):
Model: {module}.model_{model_name}
Fields: {module}.fields_{model_name}__{field_name}
Views: Need to activate debug mode first
If you are running it on web, you can get external ID of anything by viewing the metadata of the particular record
What is the Running Code Behind the Flow?
#debug
#flow
#code
#vscode
When you access the page, running the code will always be triggered by a certain actio, i.e. clicking a button, adding a new line.
As long as you know the trigger point you can put debugger in there and trace the code running path.
i.e.
- Clicking a button
- Newly created record
- Updating a value on the record
Once you put a debugger, you can check where the source path is running from and what's next