Skip to content

Conversation

eduezerouali-tecnativa
Copy link

alan196 and others added 11 commits September 10, 2025 10:32
…ss the secondary unit from a purchase order to the related pickings
Must be AGPL, as it depends on AGPL.
1. Automatic module migration to 14.0 by odoo-module-migrator
2. migrate failing unit test: Replace action_done by button_validate
3. black, isort, prettier (pre-commit)
4. setup added
5. added german translation
Currently translated at 100.0% (2 of 2 strings)

Translation: purchase-workflow-15.0/purchase-workflow-15.0-purchase_stock_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-15-0/purchase-workflow-15-0-purchase_stock_secondary_unit/es/
@eduezerouali-tecnativa eduezerouali-tecnativa force-pushed the 18.0-mig-purchase_stock_secondary_unit branch from 649edcc to 37b8b93 Compare September 12, 2025 16:13
Copy link
Contributor

@carlosdauden carlosdauden left a comment

Choose a reason for hiding this comment

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

Code LGTM

self.assertEqual(picking.move_lines.secondary_uom_qty, 0.0)
self.assertFalse(picking.move_lines.secondary_uom_id)
self.assertEqual(picking.move_lines.product_uom_qty, 10.0)
self.assertEqual(picking.move_line_ids.secondary_uom_qty, 0.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you changing model operations (stock.move) by model detailed operations (stock.move.line)

The same applies to several of the changes in this file.

Choose a reason for hiding this comment

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

You are right no need, should be move_ids.

picking = self.purchase_order.picking_ids
picking.action_assign()
picking.move_line_ids.qty_done = picking.move_lines.product_uom_qty
picking.move_ids.quantity = picking.move_ids.product_uom_qty
Copy link
Contributor

Choose a reason for hiding this comment

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

Is needed change picking.move_line_ids?

Test was changed due to now odoo auto set quantity if available.
@eduezerouali-tecnativa eduezerouali-tecnativa force-pushed the 18.0-mig-purchase_stock_secondary_unit branch from 15e660e to b907393 Compare September 15, 2025 15:22
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.

9 participants