-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[18.0] sale_restricted_qty: Migration to 18.0 #3609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 18.0
Are you sure you want to change the base?
Conversation
… and manual_force_sale_max_qty (imp user UI)
… other module & pep8
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/
ae9714d to
ad4ba87
Compare
|
/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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ad4ba87 to
6f52440
Compare
|
Can you please recreate a runboat? |
marielejeune
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (code review)
bosd
left a comment
There was a problem hiding this 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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ',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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ',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. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| product. Min and Max order quantity is either required or recommanded. | |
| product. Min and Max order quantity is either required or recommended. |
|
Seems like most of my comments are actually already been addressed in: #2997 by @alexey-pelykh |
|
@bosd already used in production, I wanted to merge migration first and then refactored one - but it's ready |
No description provided.