Skip to content

Master construction wi bom dev#18

Draft
trcazier wants to merge 6 commits into
master-construction-wi-bom-poc-trcazfrom
master-construction-wi-bom-dev
Draft

Master construction wi bom dev#18
trcazier wants to merge 6 commits into
master-construction-wi-bom-poc-trcazfrom
master-construction-wi-bom-dev

Conversation

@trcazier

@trcazier trcazier commented Jul 1, 2026

Copy link
Copy Markdown

No description provided.

@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch 3 times, most recently from 586d3a2 to 25ea2db Compare July 2, 2026 13:47

@vava-odoo vava-odoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I skipped wbs for now

Comment thread construction_developer/data/ir_model_access.xml Outdated
Comment thread construction_developer/features/work_items/cost_nature_report.xml
Comment thread construction_developer/features/work_items/cost_nature_report.xml
Comment thread construction_developer/features/work_items/cost_nature_report.xml
Comment thread construction_developer/features/work_items/cost_nature_report.xml
Comment thread construction_developer/data/views_standard.xml
Comment thread construction_developer/data/views_standard.xml Outdated
Comment thread construction_developer/features/work_items/link_picking_loc_on_po_confirm.xml Outdated
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch from e3f2b80 to e6c1f83 Compare July 7, 2026 11:04
@trcazier
trcazier force-pushed the master-construction-wi-bom-poc-trcaz branch from 00cbcb5 to 48c1406 Compare July 7, 2026 11:11
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch 2 times, most recently from da42bb5 to cdff1b4 Compare July 9, 2026 10:18
Comment thread construction_developer/features/work_items/link_picking_loc_on_po_confirm.xml Outdated
Comment thread construction_developer/features/work_items/delivery_progress_view.xml Outdated
<field name="readonly" eval="True"/>
<field name="depends">sale_line_id,sale_line_id.move_ids,sale_line_id.move_ids.product_uom_qty</field>
<field name="compute"><![CDATA[
for record in self: record['x_total_qty'] = sum(record.sale_line_id.move_ids.mapped('product_uom_qty'))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like mapped/filtered too, but this version more efficient (only one loop)

Suggested change
for record in self: record['x_total_qty'] = sum(record.sale_line_id.move_ids.mapped('product_uom_qty'))
for record in self: record['x_total_qty'] = sum(move.product_uom_qty for move in record.sale_line_id.move_ids)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and how do you handle different uom? wouldn't it make sense to use product_qty instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? How would it be possible for the same product to have different uoms?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, see with Loïc please

Comment thread construction_developer/features/work_items/delivery_progress_view.xml Outdated
Comment on lines +133 to +136
# Force unselected/unaffected moves on these pickings to strictly backorder
for picking in pickings_to_validate:
if (unaffected_moves := picking.move_ids - processed_moves):
unaffected_moves.write({'quantity': 0.0, 'picked': False})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this part

<field name="depends">price_subtotal,move_ids.x_increment_percent</field>
<field name="store" eval="False"/>
<field name="compute"><![CDATA[
for sol in self: sol['x_invoice_increment'] = sol.price_subtotal * sum(sol.move_ids.mapped('x_increment_percent'))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does the increment include the price subtotal?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. This is the way it was before (not my code)
  2. I think it's supposed to be the difference in price between the previous and current invoice

Comment thread construction_developer/features/work_items/delivery_progress_report/templates.xml Outdated
Comment thread construction_developer/features/work_items/delivery_progress_report/templates.xml Outdated
Comment thread construction_developer/features/work_items/delivery_progress_report/templates.xml Outdated
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch from c3ea53e to d7e596d Compare July 15, 2026 08:19
@trcazier
trcazier force-pushed the master-construction-wi-bom-poc-trcaz branch 3 times, most recently from 8cd8649 to 0d55732 Compare July 15, 2026 11:28
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch from d7e596d to 1a7772c Compare July 15, 2026 12:28
@trcazier
trcazier force-pushed the master-construction-wi-bom-poc-trcaz branch 2 times, most recently from 12b59e7 to 5387d65 Compare July 16, 2026 07:23
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch 11 times, most recently from c5b61f5 to c91b486 Compare July 17, 2026 09:22
trcazier added 3 commits July 17, 2026 11:24
… set BOM price on SOL on BOM change

[IMP] construction_developer: 12. remove price & margin from bom, check cost instead of price, automate bom cost propagation to SOL
@trcazier
trcazier force-pushed the master-construction-wi-bom-dev branch from c91b486 to 238fd06 Compare July 17, 2026 09:24
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