Skip to content

[18.0][MIG] pos_empty_home: Migration to 18.0#2

Open
P-H-Phuc wants to merge 24 commits into18.0from
18.0-mig-pos_empty_home
Open

[18.0][MIG] pos_empty_home: Migration to 18.0#2
P-H-Phuc wants to merge 24 commits into18.0from
18.0-mig-pos_empty_home

Conversation

@P-H-Phuc
Copy link
Owner

@P-H-Phuc P-H-Phuc commented Jul 10, 2025

Migration pos_empty_home from version 14.0 to version 18.0.

This module extends Odoo Point Of Sale features, displaying an empty page if:

  • iface_empty_home is True in pos.config
  • Products is availble in this POS
  • No category is selected
  • No search is done

This module is interesting to avoid to display useless products, when user did not yet realized a search.

It can limits errors to avoid users to select undesired product.

In version 14.0:

pos_empty_home

In version 18.0:

pos_empty_home

legalsylvain and others added 23 commits July 9, 2025 17:22
OCA Transbot updated translations from Transifex

[UPD] Update pos_empty_home.pot
[FIX] Remove scrollbar when showing the empty page
[UPD] Update pos_empty_home.pot
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-12.0/pos-12.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_empty_home/
Currently translated at 100.0% (1 of 1 strings)

Translation: pos-12.0/pos-12.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_empty_home/ca/
Currently translated at 100.0% (1 of 1 strings)

Translation: pos-12.0/pos-12.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_empty_home/es/
[UPD] Update pos_empty_home.pot

[UPD] README.rst
[UPD] Update pos_empty_home.pot

[UPD] README.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-13.0/pos-13.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-13-0/pos-13-0-pos_empty_home/
[UPD] Update pos_empty_home.pot

[UPD] README.rst
Currently translated at 100.0% (4 of 4 strings)

Translation: pos-14.0/pos-14.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_empty_home/ca/
Translated using Weblate (Italian)

Currently translated at 100.0% (7 of 7 strings)

Translation: pos-14.0/pos-14.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_empty_home/it/

[UPD] README.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: pos-14.0/pos-14.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_empty_home/

[FIX] *: Linter fixes
Currently translated at 100.0% (7 of 7 strings)

Translation: pos-14.0/pos-14.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_empty_home/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: pos-14.0/pos-14.0-pos_empty_home
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_empty_home/fr/

get isShowEmptyHome() {
return this.pos.config.iface_empty_home &&
this.pos.session._has_available_products &&

Choose a reason for hiding this comment

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

Where did you get this.pos.session._has_available_products from?
For cases that require some context to understand properly, we should note that in the PR description to make it easier for reviewers (at Trobz and OCA) to follow.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thank you, I noted.
this.pos.session._has_available_products checks if there are any available products in this POS.

@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_empty_home branch from 02d86cc to c3f9680 Compare July 11, 2025 03:17
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_empty_home branch from c3f9680 to 127ac76 Compare July 14, 2025 02:56
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_empty_home branch from 127ac76 to 15b237d Compare August 8, 2025 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.