Skip to content

Conversation

@trcazier
Copy link
Contributor

@trcazier trcazier commented Jan 20, 2026

Following task-5364749, we noticed there were some industries like art_craft that are creating their POS configs and journals manually, which is probably error prone and will create unwanted behaviors like duplicate account journals. Instead, we should call a function to load a scenario and modify the existing data.

Furthermore, thanks to this commit odoo/odoo#244246, we can, from the data that is being imported, infer whether or not the module is loaded with demo. Therefore, we can call, from the data, the load_onboarding_scenario functions with the additional parameter with_demo_data as True or False to load the scenario's default demo data in one go.
NB: at the moment, the retail scenario has no demo data that come with the function call, but the parameter still exists. The kiosk scenario however has no demo data parameter.

@robodoo
Copy link
Collaborator

robodoo commented Jan 20, 2026

Pull request status dashboard

@trcazier trcazier changed the title [IMP] *: WIP [IMP] *: standardize POS config creation Jan 20, 2026
@trcazier trcazier force-pushed the 19.0-standardize-pos-config-trcaz branch 12 times, most recently from de19cb5 to 63e34eb Compare January 26, 2026 16:22
@trcazier trcazier closed this Jan 27, 2026
@trcazier trcazier force-pushed the 19.0-standardize-pos-config-trcaz branch from 63e34eb to 1ea25d1 Compare January 27, 2026 08:59
@trcazier trcazier reopened this Jan 27, 2026
@trcazier trcazier force-pushed the 19.0-standardize-pos-config-trcaz branch 2 times, most recently from 5bb5a51 to 062efbc Compare January 27, 2026 14:11
Following task-5364749, we noticed there were some industries like art_craft that are creating their POS configs and journals manually, which is probably error prone and will create unwanted behaviors like duplicate account journals. Instead, we should call a function to load a scenario and modify the existing data.

Furthermore, thanks to this commit odoo/odoo#244246, we can, from the data that is being imported, infer whether or not the module is loaded with demo. Therefore, we can call, from the data, the load_onboarding_scenario functions with the additional parameter with_demo_data as true or false to load the scenario's default demo data in one go.
So, all load_onboarding_scenario functions will be modified to include this toggle.
NB: at the moment, the retail scenario has no demo data that come with the function call, but the parameter still exists. The kiosk scenario however has no demo data parameter.

task-5468844
@trcazier trcazier force-pushed the 19.0-standardize-pos-config-trcaz branch from 062efbc to 24a3519 Compare January 29, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants