Skip to content

[IMP] construction_developer: versatile work items pricing#1916

Open
fw-bot wants to merge 2 commits intoodoo:saas-19.2from
odoo-dev:saas-19.2-19.0-versatile-work-item-pricing-frva-512557-fw
Open

[IMP] construction_developer: versatile work items pricing#1916
fw-bot wants to merge 2 commits intoodoo:saas-19.2from
odoo-dev:saas-19.2-19.0-versatile-work-item-pricing-frva-512557-fw

Conversation

@fw-bot
Copy link
Copy Markdown

@fw-bot fw-bot commented Mar 27, 2026

Improves the work item model with the possibility to manage prices manually.
Before this PR, every work item had their cost and price defined as the sum of their components costs and prices.
Now, this works as before but we can check the fixed checkbox next to the margin to enable an alternative behavior:
Input manually a fixed margin or a fixed price. This margin is kept and impacts the price when the cost of components changes.

A second commit in this pr adds some tests for the construction module:

  • Test the creation of a work item related to a sale order, see if the product is created behind.
  • Test that there is a single work item template at the same time for a product
  • Test the cost, price and margin of a work item whenever components changes or work item values are changed directly

Task-5262058

Forward-Port-Of: #1855

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Mar 27, 2026

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented Mar 27, 2026

@frva-odoo @vava-odoo cherrypicking of pull request #1855 failed.

stdout:

Auto-merging construction_developer/__manifest__.py
CONFLICT (content): Merge conflict in construction_developer/__manifest__.py
Auto-merging construction_developer/data/base_automation.xml
Auto-merging construction_developer/data/ir_actions_server.xml
Auto-merging construction_developer/data/ir_model_fields.xml
Auto-merging construction_developer/data/ir_ui_view.xml
CONFLICT (content): Merge conflict in construction_developer/data/ir_ui_view.xml

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

Improves the work item model with the possibility to manage prices manually.
Before this commit, every work item had their cost and price defined as the sum of their components costs and prices.
Now, this works as before but we can check the fixed checkbox next to the margin to enable an alternative behavior:
Input manually a fixed margin or a fixed price. This margin is kept and impacts the price when the cost of components changes.

Task-5262058

X-original-commit: ed32528
Part-of: odoo#1915
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@vava-odoo vava-odoo force-pushed the saas-19.2-19.0-versatile-work-item-pricing-frva-512557-fw branch from a1448b0 to 587c4b5 Compare March 27, 2026 15:47
This commit adds tests for some behavior defined by server action;
- Test the creation of a work item related to a sale order, see if the product is created behind.
- Test that there is a single work item template at the same time for a product
- Test the cost, price and margin of a work item whenever components changes or work item values are changed directly

closes odoo#1915

X-original-commit: 5a81567
Signed-off-by: Vallaeys Valentin (vava) <vava@odoo.com>
@vava-odoo vava-odoo force-pushed the saas-19.2-19.0-versatile-work-item-pricing-frva-512557-fw branch from 587c4b5 to 5c9cb3a Compare March 27, 2026 19:30
@vava-odoo
Copy link
Copy Markdown
Collaborator

@robodoo r+

@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Mar 27, 2026

@frva-odoo @vava-odoo 'ci/industry' failed on this reviewed PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants