Skip to content

Conversation

@BhaveshHeliconia
Copy link
Contributor

No description provided.

@BhaveshHeliconia BhaveshHeliconia mentioned this pull request Feb 10, 2025
17 tasks
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from 82ad6b7 to 489a355 Compare February 10, 2025 11:56
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from 489a355 to c681fbe Compare April 2, 2025 12:41
@github-actions
Copy link

github-actions bot commented Aug 3, 2025

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 3, 2025
diga and others added 12 commits August 6, 2025 16:22
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/
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from c681fbe to 0bef60a Compare August 6, 2025 10:52
@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 10, 2025
Copy link
Member

@FrancoMaxime FrancoMaxime 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 & functional review.

A minor comment

Comment on lines 59 to 73
<!-- <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>-->
Copy link
Member

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?

@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch 2 times, most recently from d9dfd6e to 903a0fa Compare September 16, 2025 11:48
@github-actions
Copy link

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.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 18, 2026
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch 3 times, most recently from 8cd9b87 to 47971ea Compare January 20, 2026 10:09
@BhaveshHeliconia
Copy link
Contributor Author

Hey @OCA/pos-maintainers would be great if someone could have a look at this module.

Copy link

@ivantodorovich ivantodorovich left a 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()

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

Copy link
Contributor Author

@BhaveshHeliconia BhaveshHeliconia Jan 21, 2026

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

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?

Comment on lines 11 to 15
if (
this.pos.get_order().get_orderlines() &&
this.pos.get_order().get_orderlines().length > 0
) {
var order_lines = this.pos.get_order().get_orderlines();

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()

Suggested change
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) {

Comment on lines 38 to 39
var self = this;
self.changes[id] = changes;

Choose a reason for hiding this comment

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

Suggested change
var self = this;
self.changes[id] = changes;
this.changes[id] = changes;

@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from 47971ea to 86a54d4 Compare January 21, 2026 11:33
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from 86a54d4 to 4411a8e Compare January 21, 2026 11:39
@BhaveshHeliconia BhaveshHeliconia force-pushed the 18.0-mig-pos_edit_order_line branch from 4411a8e to e476768 Compare January 21, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants