Generate data/demo records
In this section we will pick up two ways to generate records that odoo support theme, either records data or records demo.
Generate data records¶
Usage¶
codoo records data [OPTIONS]
Available options¶
Option | Type | Default | Description |
---|---|---|---|
-n, --name | TEXT | The name of the record, (e.g: Awesome record) | |
-m, --model | TEXT | The name of the model, (e.g: awesome.model) | |
-a, --addons | TEXT | The name of the addon, (e.g: codoo_demo) |
Note
All the options are mandatory.
Extra options¶
Option | Type | Default | Description |
---|---|---|---|
Do you want to add records? | BOOLEAN | False | Choose to add a new record or not |
Record ID ? | TEXT | The id of the record | |
Do you want to add fields? | BOOLEAN | False | Choose to add a new field or not |
Field name ? | TEXT | The name of the field | |
Field value ? | TEXT | The value of the field |
Examples¶
codoo records data \
-n "Awesome record" \
-m "awesome.model" \
-a codoo_demo
Generate demo records¶
Usage¶
codoo records demo [OPTIONS]
Available options¶
Option | Type | Default | Description |
---|---|---|---|
-n, --name | TEXT | The name of the record, (e.g: Awesome record) | |
-m, --model | TEXT | The name of the model, (e.g: awesome.model) | |
-a, --addons | TEXT | The name of the addon, (e.g: codoo_demo) |
Note
All the options are mandatory.
Extra options¶
Option | Type | Default | Description |
---|---|---|---|
Do you want to add records? | BOOLEAN | False | Choose to add a new record or not |
Record ID ? | TEXT | Type a record id | |
Do you want to add fields? | BOOLEAN | False | Choose to add a new field or not |
Field name ? | TEXT | Type a field name | |
Field value ? | TEXT | Type a field value |
Examples¶
codoo records data \
-n "Awesome record" \
-m "awesome.model" \
-a codoo_demo \
--yes
Now we are certain that we have records in our database, so we can pass to discover how to generate a new wizard in the next section.