odoo/odoo#244772
Created by fw-bot
Merged
at 971b3d7655ae63d0e3e511eee812e7ad41e1eaa3
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 32s)
- ci/documentation: (runtime 1171s)
- label
- odoo-dev:master-19.0-sale-sections-tests-nipl-492153-fw
- head
- 276a89f920e1e4f0b080899633720332a77a04f9
- merged
- 5 months ago by Nisarg Patel (nipl)
| odoo/odoo | |
|---|---|
| 19.0 | #226613 |
| saas-19.1 | #244740 |
| saas-19.2 | |
| saas-19.3 | |
| master | #244772 |
[IMP] account, sale: add various HOOT and python tests for sections widget and logic
This PR adds the missing tests for the newly introduced behavior in sections and combo products widgets.
HOOT Tests
-
Sections widget (account & sale)
-
Validate Hide Composition and Hide Prices actions.
- Ensure duplicating a section also duplicates its invisible
collapse_fields. -
Confirm drag-and-drop under hidden sections resets
collapse_values for subsections. -
Combo products and Optional Sections(sale)
-
Support moving combo lines Up/Down.
- Validate optional product logic.
-
Drag-and-drop behavior:
- Moving a product line under an optional section → quantity set to
0. - Moving it out of an optional section → quantity set to
1if previously0. - Moving a subsection under an optional section → resets
collapse_fields.
- Moving a product line under an optional section → quantity set to
Python Tests
- Validate
parent_idcompute logic. - Test utility methods used in portal and report for Sales Orders with sections.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #226613