Skip to content

Generate a views

In this section we will see how to generate a views for our awesome.model:

Usage

codoo views [OPTIONS]

Available options

Option Type Default Description
-a, --addons TEXT The name of the addon, (e.g: codoo_demo)
-n, --name TEXT The name of the view, (e.g: Awesome view)
-i, --id TEXT The id of the view (e.g: awesome_view_id)
-m, --model TEXT The name of the model, (e.g: awesome.model)
-t, --tree BOOLEAN True Choose to generate a tree view or not
-f, --form BOOLEAN False Choose to generate a form view or not
--yes BOOLEAN False To confirm the generation

Note

All the options are mandatory.

Examples

 codoo views \
 -a codoo_demo \
 -n "Awesome view" \
 -i "awesome_view_id" \
 -m "awesome.model" \
 -t True \
 -f False \
 --yes


That's it! we have now our new views (addons/codoo_demo/views/awesome_view.xml), GOO next!!.

Back to top