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. faq_9 faq_10 faq_11 faq_12

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 faq_1 faq_2

If you are running it on web, you can get external ID of anything by viewing the metadata of the particular record

faq_13

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.

  1. Clicking a button faq_5
  2. Newly created record faq_6
  3. Updating a value on the record faq_7

Once you put a debugger, you can check where the source path is running from and what's next faq_8