-
-
Notifications
You must be signed in to change notification settings - Fork 670
[18.0][MIG] pos_edit_order_line: Migration to 18.0 #1293
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?
[18.0][MIG] pos_edit_order_line: Migration to 18.0 #1293
Conversation
82ad6b7 to
489a355
Compare
489a355 to
c681fbe
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Currently translated at 100.0% (15 of 15 strings) Translation: pos-14.0/pos-14.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_edit_order_line/it/
Currently translated at 100.0% (13 of 13 strings) Translation: pos-16.0/pos-16.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_edit_order_line/es/
Currently translated at 100.0% (13 of 13 strings) Translation: pos-16.0/pos-16.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_edit_order_line/it/
Currently translated at 100.0% (15 of 15 strings) Translation: pos-16.0/pos-16.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_edit_order_line/it/
Currently translated at 100.0% (15 of 15 strings) Translation: pos-16.0/pos-16.0-pos_edit_order_line Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_edit_order_line/es/
c681fbe to
0bef60a
Compare
FrancoMaxime
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 & functional review.
A minor comment
| <!-- <div role="dialog" class="modal-dialog edit-order-popup">--> | ||
| <!-- <div class="popup popup-text">--> | ||
| <!-- <header class="title">--> | ||
| <!-- <t t-esc="props.title" />--> | ||
| <!-- </header>--> | ||
| <!-- <footer class="footer">--> | ||
| <!-- <div class="button confirm" t-on-click="confirm">--> | ||
| <!-- <t t-esc="props.confirmText" />--> | ||
| <!-- </div>--> | ||
| <!-- <div class="button cancel" t-on-click="cancel">--> | ||
| <!-- <t t-esc="props.cancelText" />--> | ||
| <!-- </div>--> | ||
| <!-- </footer>--> | ||
| <!-- </div>--> | ||
| <!-- </div>--> |
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.
If it's not needed, can you remove it?
d9dfd6e to
903a0fa
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
8cd9b87 to
47971ea
Compare
|
Hey @OCA/pos-maintainers would be great if someone could have a look at this module. |
ivantodorovich
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!
Small comments, pre-approving
|
|
||
| @api.model | ||
| def _load_pos_data_fields(self, config_id=None): | ||
| return super()._load_pos_data_fields() |
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.
This override is not doing anything, you can remove it
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.
This override is required for method signature compatibility: POS may call _load_pos_data_fields(config_id), but core doesn’t accept that argument. The override keeps behavior identical while preventing a TypeError in POS tests.
OCB Error :-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/tests/common.py", line 1499, in _websocket_request
return f.result(timeout=timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 460, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/odoo/tests/common.py", line 1221, in stop
self._websocket_request('Runtime.evaluate', params={'expression': """
File "/opt/odoo/odoo/tests/common.py", line 1501, in _websocket_request
raise TimeoutError(f'{method}({params or ""})')
TimeoutError: Runtime.evaluate({'expression': "\n ('serviceWorker' in navigator) &&\n navigator.serviceWorker.getRegistrations().then(\n registrations => Promise.all(registrations.map(r => r.unregister()))\n )\n ", 'awaitPromise': True})
2026-01-21 11:51:08,519 305 ERROR odoo odoo.addons.pos_display_total_quantity.tests.test_frontend: FAIL: TestDisplayTotalQty.test_display_total_qty
Traceback (most recent call last):
File "/__w/pos/pos/pos_display_total_quantity/tests/test_frontend.py", line 13, in test_display_total_qty
self.start_tour(
File "/opt/odoo/addons/account/tests/common.py", line 1496, in start_tour
super().start_tour(url_path, tour_name, step_delay, **kwargs)
File "/opt/odoo/odoo/tests/common.py", line 2305, in start_tour
return self.browser_js(url_path=url_path, code=code, ready=ready, timeout=timeout, success_signal="tour succeeded", **kwargs)
File "/opt/odoo/odoo/tests/common.py", line 2279, in browser_js
self.fail('%s\n\n%s' % (message, error))
AssertionError: The test code "odoo.startTour('DisplayTotalQty', {"stepDelay": 0, "keepWatchBrowser": false, "debug": false, "startUrl": "/pos/ui?config_id=7", "delayToCheckUndeterminisms": 0})" failed
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.
I'm sorry, I don't get it.
I still see no reason for this override in this module.
Can you elaborate?
| if ( | ||
| this.pos.get_order().get_orderlines() && | ||
| this.pos.get_order().get_orderlines().length > 0 | ||
| ) { | ||
| var order_lines = this.pos.get_order().get_orderlines(); |
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.
Same thing, but with fewer characters and calls to get_order() and get_orderlines()
| if ( | |
| this.pos.get_order().get_orderlines() && | |
| this.pos.get_order().get_orderlines().length > 0 | |
| ) { | |
| var order_lines = this.pos.get_order().get_orderlines(); | |
| const order_lines = this.pos.get_order().get_orderlines(); | |
| if (order_lines?.length) { |
| var self = this; | ||
| self.changes[id] = changes; |
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.
| var self = this; | |
| self.changes[id] = changes; | |
| this.changes[id] = changes; |
47971ea to
86a54d4
Compare
86a54d4 to
4411a8e
Compare
4411a8e to
e476768
Compare
No description provided.