Skip to content

Instantly share code, notes, and snippets.

@inspiretk
Last active August 28, 2019 21:20
Show Gist options
  • Save inspiretk/0d7b3e0870087c1d1ef9f582d475a9d7 to your computer and use it in GitHub Desktop.
Save inspiretk/0d7b3e0870087c1d1ef9f582d475a9d7 to your computer and use it in GitHub Desktop.
#https://www.odoo.com/documentation/11.0/howtos/backend.html
#odoo-bin scaffold <module name> <where to put it> eg odoo-bin scaffold openacademy addons
#python odoo-bin scaffold tool addons #{in cmd, put new tool folder in folder addons}
# ./odoo-bin scaffold module_name /odoo/odoo-server/addons/
#./odoo-bin scaffold <module_name> <destination path where you want to create>
python odoo-bin scaffold tool addons
https://hub.packtpub.com/building-your-first-odoo-application/
_name value is what will be used as an identifier for other odoo modules.
odoo-bin -u openacademy to save the changes to your database.
https://www.youtube.com/watch?v=ccmZUCc8ST4
https://www.youtube.com/watch?v=FclXoWi-zOA
## Menus
https://www.packtpub.com/mapt/book/application_development/9781788471817/10/ch10lvl1sec91/adding-a-menu-item-and-window-action
# Define an action to be executed:
<act_window id="action_all_customers"
name="All customers"
res_model="res.partner"
view_mode="list,form"
domain="[('customer', '=', True)]"
context="{'default_customer': True}"
limit="80"
/>
# Create the menu structure:
<menuitem id="menu_custom_toplevel"
name="My custom menu"
/>
<menuitem id="menu_custom_left"
parent="menu_custom_toplevel"
name="This will appear in the left bar"
/>
https://www.youtube.com/watch?v=LNBXJ4uR2yU&t=304s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment