Skip to content

[IMP] construction{_developer}: add Sale Order margin analysis#1796

Draft
trcazier wants to merge 7 commits intoodoo:19.0from
odoo-dev:19.0-construction_developer-margin-analysis-trcaz
Draft

[IMP] construction{_developer}: add Sale Order margin analysis#1796
trcazier wants to merge 7 commits intoodoo:19.0from
odoo-dev:19.0-construction_developer-margin-analysis-trcaz

Conversation

@trcazier
Copy link
Contributor

@trcazier trcazier commented Mar 4, 2026

This commit adds a new view to compute the margin of products/work items/sale order lines on projects and sale orders using an SQL view through a server action.
This commit also heavily reworks the demo data by creating the SOLs from the template instead of copying every single line, which automatically links the SO and the project together.

task-5194350

@robodoo
Copy link
Collaborator

robodoo commented Mar 4, 2026

Pull request status dashboard

trcazier added 4 commits March 4, 2026 15:18
removed almost duplicate SO2 from sarah davis
category logic
demo data
moved category assignation from developer to construction
removed recursive dependency, replaced with an automation
@trcazier trcazier force-pushed the 19.0-construction_developer-margin-analysis-trcaz branch 2 times, most recently from 61c07c3 to 74c5ede Compare March 4, 2026 15:00
@trcazier trcazier force-pushed the 19.0-construction_developer-margin-analysis-trcaz branch from 74c5ede to e42582a Compare March 4, 2026 15:20
trcazier added 2 commits March 5, 2026 10:06
put the drop table before each call to the sql query instead of once in the model (was cleaner but doesn't work for unknown reasons)
@trcazier trcazier force-pushed the 19.0-construction_developer-margin-analysis-trcaz branch from 71e6299 to dba1712 Compare March 5, 2026 10:19
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