Skip to content

Conversation

@samirGuesmi
Copy link
Member

No description provided.

mourad-ehm and others added 22 commits March 3, 2025 11:34
Currently translated at 100.0% (54 of 54 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_restricted_qty
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_restricted_qty/it/
Currently translated at 100.0% (54 of 54 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_restricted_qty
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_restricted_qty/it/
Currently translated at 100.0% (54 of 54 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_restricted_qty
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_restricted_qty/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_restricted_qty
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_restricted_qty/
Currently translated at 100.0% (51 of 51 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_restricted_qty
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_restricted_qty/it/
@samirGuesmi samirGuesmi force-pushed the 18.0-mig-sale_restricted_qty branch from ae9714d to ad4ba87 Compare March 3, 2025 11:34
@rousseldenis
Copy link
Contributor

/ocabot migration sale_restricted_qty

{"partner_id": self.partner.id, "order_line": [(0, 0, line_values)]}
)
sale_values = self.refrech_sale_values(sale_order)
self.sale_order_model.create(sale_values)
Copy link
Contributor

Choose a reason for hiding this comment

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

@samirGuesmi Could you check why tests are not reaching this line? I think I don't see any refrech_sale_values method.

Copy link
Member Author

Choose a reason for hiding this comment

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

@rousseldenis I deleted these lines, they were most propably forgotten during a previous update.

@bosd
Copy link
Contributor

bosd commented Oct 13, 2025

Can you please recreate a runboat?

Copy link
Contributor

@marielejeune marielejeune left a comment

Choose a reason for hiding this comment

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

LGTM (code review)

Copy link
Contributor

@bosd bosd left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this, but the Functional test made me very confused:

Set a min quantity on a product of 100.
Add 50 pieces of the product to an so.
Confirm the SO.
Result
There was no warning, that my quantity is below minimum. SO got confirmed.
Expected result
A warning that I am selling below the MOQ. Unable to confirm the SO.

Then I Tried to copy that Saleorder.
Now there is an error message that my MOQ is below the minimum 😕 ❔
The message:

If you want sell quantity less than Min Quantity,Check "force min quatity" on product

quantity

So if I understand this correctly, I have to enable the enforce min quantity to be able to use less then the minimum quantity? 🧠 ❓

) + "\n ".join(invaild_min_lines)
msg += _(
"\n* If you want sell quantity less than Min Quantity"
',Check "force min quatity" on product'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
',Check "force min quatity" on product'
',Check "force min quantity" on product'

) + "\n ".join(invaild_max_lines)
msg += _(
"\n* If you want sell quantity bigger than max Quantity"
',Check "force max quatity" on product'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
',Check "force max quatity" on product'
',Check "force max quantity" on product'

@@ -0,0 +1,10 @@
This module allows to define min, max and multiple order quantity on
product. Min and Max order quantity is either required or recommanded.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
product. Min and Max order quantity is either required or recommanded.
product. Min and Max order quantity is either required or recommended.

@bosd
Copy link
Contributor

bosd commented Oct 20, 2025

Seems like most of my comments are actually already been addressed in: #2997 by @alexey-pelykh
Is that still a WIP or ready to be included here?

@alexey-pelykh
Copy link

@bosd already used in production, I wanted to merge migration first and then refactored one - but it's ready

@alexey-pelykh
Copy link

Idea is that #2997 completely remade the UI as current one less than optimal let's say, so migration to 18.0 should've included that. However as #2996 has been in review for one year 7 months (completely normal phenomenon for a functioning organization), obviously this migration does not include it

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.