Skip to content

Conversation

@P-H-Phuc
Copy link
Owner

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

This module was written to extend the functionality of odoo pos and allows you to require a customer for each pos order. In the pos session configuration, you can choose to require the customer for pos orders.

If a customer is not selected, the pos ui will display an message.
In the backend the customer field is required when needed.

Two new options are available:

  • Customer 'Required before starting the order';
  • Customer 'Required before paying';

'Required before starting the order' Option

In the frontend PoS, the default screen is the screen to select customers.

  • Users are not allowed to start selling before having selected a customer;
pos_customer_required_before_order

'Required before paying' Option

In the frontend PoS, the user can start selling, but if the user tries to make payment and if a customer is not selected, the pos ui will display an message.

pos_customer_required_before_paying

legalsylvain and others added 23 commits July 10, 2025 15:44
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: pos-12.0/pos-12.0-pos_customer_required
Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_customer_required/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: pos-14.0/pos-14.0-pos_customer_required
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_customer_required/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: pos-14.0/pos-14.0-pos_customer_required
Translate-URL: https://translation.odoo-community.org/projects/pos-14-0/pos-14-0-pos_customer_required/es/
@P-H-Phuc P-H-Phuc self-assigned this Jul 11, 2025
@P-H-Phuc P-H-Phuc changed the title [18.0][MIG] pos_customer_required: Migration tp 18.0 [18.0][MIG] pos_customer_required: Migration to 18.0 Jul 11, 2025
Copy link

@thienvh332 thienvh332 left a comment

Choose a reason for hiding this comment

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

Just some nitpicking 😉

License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
<odoo>
<record model="ir.ui.view" id="view_pos_order_form">
<record model="ir.ui.view" id="view_pos_pos_form">

Choose a reason for hiding this comment

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

Do not change the name during migration unless absolutely necessary.

License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
<odoo>
<record model="ir.ui.view" id="view_pos_config_form">
<field name="name">view.pos.config.form</field>

Choose a reason for hiding this comment

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

Why delete <field name="name">view.pos.config.form</field> ?

Copy link
Owner Author

Choose a reason for hiding this comment

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

My mistake

@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_customer_required branch from 8298187 to 6fe437a Compare July 11, 2025 09:09
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_customer_required branch 2 times, most recently from d08c9a1 to cfb31ab Compare July 15, 2025 10:58
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_customer_required branch 4 times, most recently from b162bf1 to 34c8260 Compare July 16, 2025 03:15
@P-H-Phuc P-H-Phuc force-pushed the 18.0-mig-pos_customer_required branch from 34c8260 to a31b2e9 Compare July 16, 2025 03:24
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.