-
-
Notifications
You must be signed in to change notification settings - Fork 671
[18.0][MIG] pos_order_to_sale_order: Migration to 18.0 #1429
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
* [ADD] new module pos_order_to_sale_order
…ion of this module (price unit loss, and pricelist) if pos_pricelist is installed
[FIX] Remove console.log ; [IMP] Do not import js files in backend [IMP] apply new readme structure [FIX] remove useless demo file [FIX] some pylint issues [REF] add maintainers and developpment status
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-8.0/pos-8.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-8-0/pos-8-0-pos_order_to_sale_order/
Co-authored-by: Iván Todorovich <ivan.todorovich@druidoo.io>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_to_sale_order/
Currently translated at 100.0% (23 of 23 strings) Translation: pos-12.0/pos-12.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_to_sale_order/es/
Currently translated at 100.0% (23 of 23 strings) Translation: pos-12.0/pos-12.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_to_sale_order/pt_BR/
Return module's javascript widgets to make them extendable for other modules. Same idea as OCA#535
…quired in recent odoo version
…) is null, that occures if pos_restaurant is installed
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_to_sale_order/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-12.0/pos-12.0-pos_order_to_sale_order Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_order_to_sale_order/
|
@pedrobaeza , It didn't work, do you know why? |
|
/ocabot merge nobump |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1429-by-pedrobaeza-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
|
@benwillig , I think the JS tests aren't passing, could you check it? |
@lbarry-apsl tests with OCB seems to failed because of other modules, and it's in the case in other PR in 18 |
…ale order + changed the way to display buttons
f87a9f3 to
ec17e81
Compare
|
Thanks @benwillig for the PR updates! The following OCB tests do fail, though:
However, all such errors are similar, for example under log line 145 for Then the browser-side script gets stuck and eventually killed. The code under Update 2025-12-02: The PR is already on top of the latest commit, please disregard my suggestion to rebase/force-push. |
|
The errors that I listed above can be pinpointed respectively to these modules: @pedrobaeza, should the other modules be fixed first, before this one can be merged? I understand that merging this one is kind of ugly as the "default" ensemble of tests run by |
|
Which tests are failing here in GitHub? |
fabiandumaguala
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
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1429-by-pedrobaeza-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
|
@pedrobaeza: The tests that fail are the ones that I listed in #1429 (comment). They fail both in GitHub's CI and when run locally. |
|
But it's due to this module or they are failing in general? |
|
The tests that I mentioned from modules Sorry if I didn't explain myself more clearly. 🙂 |
|
Then they should be fixed before merging this. |
|
@pedrobaeza @benwillig: I traced back the errors in the other modules to a bug introduced in upstream Odoo 18 in commit odoo/odoo@282a667bae54: a new The following changes fix the issue: diff --git a/addons/point_of_sale/models/ir_module_module.py b/addons/point_of_sale/models/ir_module_module.py
index fcae0cad27a1..32c81bd36724 100644
--- a/addons/point_of_sale/models/ir_module_module.py
+++ b/addons/point_of_sale/models/ir_module_module.py
@@ -5,7 +5,7 @@ class IrModuleModule(models.Model):
_inherit = 'ir.module.module'
@api.model
- def _load_pos_data_fields(self):
+ def _load_pos_data_fields(self, config_id):
return ['id', 'name', 'state']
@api.model
@@ -14,8 +14,8 @@ class IrModuleModule(models.Model):
def _load_pos_data(self, data):
domain = self._load_pos_data_domain()
- fields = self._load_pos_data_fields()
+ fields = self._load_pos_data_fields(data['pos.config']['data'][0]['id'])
return {
'data': self.search_read(domain, fields, load=False),
- 'fields': self._load_pos_data_fields(),
+ 'fields': fields,
}I don't have time right now to work on a new PR for that, if anyone wants to use the patch to create the PR, be my guest. Thanks! 🙂 (I may be wrong, but I the existing bug may be blocking all future PRs to this repo as well since it will make their tests fail.) |
|
Hello, On my local I have a warning : Component 'CreateOrderButton' does not have a static props description |
|
After some test we also notice that when a pos order customer have a price list with discount, and that we create a SO from the pos: each SO have the unit price = to price with the discount and that discount is at False. I do not have any solution so far for this. But I guess it's worth it to let you know |
After longer investigation, this make sens that odoo standard do it this way because it's easier to apply a discount per line that is not "cumulated". |

No description provided.