Setup Odoo 13 through Docker
use Docker compose found on
https://github.com/minhng92/odoo-13-docker-compose
it will start Postgres DB and Odoo servers.
to connect to DB
1) docker ps
2) get container ID related to DB instance
3) docker exec -it <Container ID> bash
Inside docker instance write command:
psql -U odoo -W
To View Available Databases
SELECT datname FROM pg_database;
To Enable Odoo Developer Mode
Notes:
debug with assets will use actual css and javascript files instead of
minifying/merging css and js files. This mode will reduce performance
but it will give you proper error message in console if you are doing
some JavaScript changes in odoo.
How to add new field to exist form, for example Add new field to Sales module\ product Form ?
1) Enable Developer mode
2) Install Sales module, Navigate to that product form
3) Click on "Open Developer Tool"
4) choose "Edit View:Form"
6) Search for the model that exists on edit view "product.template"
7) Add Field with label "Weight" and Name "x_Weight",
Note that, the custom field should start with "x_"
8) Navigate back to form "Sales\Add Product" and from developer mode menu choose "Edit View:Form" and add the new column <field name="x_Weight" />
9) Refresh form add view to validate exists of the new feild
How to add this new field to the Products Grid official name is "View List" ?
2) From Developer Debug menu choose "Edit View: List"
No comments:
Post a Comment