Skip to content

[6807][ADD] sale_order_secondary_unit_convert#256

Open
smorita7749 wants to merge 3 commits into
18.0from
6807-add-sale_order_secondary_unit_convert
Open

[6807][ADD] sale_order_secondary_unit_convert#256
smorita7749 wants to merge 3 commits into
18.0from
6807-add-sale_order_secondary_unit_convert

Conversation

@smorita7749

Copy link
Copy Markdown
Contributor

QT6807

This module lets users enter sale order line quantities in a convenient input secondary unit while the line keeps being displayed in another secondary unit.

For example, a product may be handled internally in "Bundle" but sold to the customer in "Bag". Users can enter the quantity in "Bundle", and it is automatically converted so that the line shows the quantity in "Bag".

@smorita7749

Copy link
Copy Markdown
Contributor Author

I will add translation when I find the approach is appropriate through reviewing.

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor

@smorita7749 Please update the PR title. Seem like wrong.

@smorita7749 smorita7749 changed the title [6807][ADD] sale_order_secondary_unit [6807][ADD] sale_order_secondary_unit_convert Jun 12, 2026
@smorita7749 smorita7749 force-pushed the 6807-add-sale_order_secondary_unit_convert branch from 4d89059 to 9302ca8 Compare June 12, 2026 08:43

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@smorita7749 I failed to understand the usage of this module. Why we need a new secondary uom field for sale order line since we already have sale_order_secondary_unit module. Am I missing something?

@smorita7749

Copy link
Copy Markdown
Contributor Author

@smorita7749 I failed to understand the usage of this module. Why we need a new secondary uom field for sale order line since we already have sale_order_secondary_unit module. Am I missing something?

Some products are managed with a base unit, kg and some secondary units, bundle and bag.
They receive POs in bundles, but they want to show the POs lines and invoices to their customers in bags, which means a conversion between secondary units is needed.

Originally, I thought the conversion should be on the wizard, but since it should be saved, I decided is should be on the lines.

Comment thread sale_order_secondary_unit_convert/models/sale_order_line.py Outdated
string="Input Unit",
)
input_secondary_qty = fields.Float(
string="Input Qty",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as above.

Comment thread sale_order_secondary_unit_convert/models/sale_order_line.py Outdated
Comment thread sale_order_secondary_unit_convert/models/sale_order_line.py Outdated
@smorita7749 smorita7749 force-pushed the 6807-add-sale_order_secondary_unit_convert branch from 249cba0 to 8efea2a Compare June 25, 2026 09:45
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