-
-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] pos_customer_required: Migration to 12.0
- Loading branch information
1 parent
4d08a16
commit bc3c4d1
Showing
21 changed files
with
117 additions
and
175 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>) | ||
Copyright (C) 2019-Today: Druidoo (<https://www.druidoo.io>) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
|
||
<odoo> | ||
<!-- POS Config: Require Customer(Required before starting the order) --> | ||
<record id="point_of_sale.pos_config_main" model="pos.config"> | ||
<field name="require_customer">order</field> | ||
</record> | ||
</odoo> |
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
pos_customer_required/migrations/9.0.1.0.0/post-migration.py
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
pos_customer_required/migrations/9.0.1.0.0/pre-migration.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import pos_config | ||
from . import pos_order | ||
from . import pos_make_payment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
To configure this module, you need to: | ||
|
||
* go to point of sale -> configuration -> point of sales | ||
* select the point of sales you want configure | ||
* search for the "Require Customer" and choose between the following values: | ||
* 'Optional'; (this module has no effect on this PoS config) | ||
* 'Required before paying'; | ||
* 'Required before starting the order'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* Jos De Graeve <Jos.DeGraeve@apertoso.be> | ||
* Sylvain LE GAL <https://twitter.com/legalsylvain> | ||
* Pedro M. Baeza <pedro.baeza@gmail.com> ( reviews & feedback ) | ||
* Druidoo <https://www.druidoo.io> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 error 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; | ||
* Users can not 'deselect a customer', only select an other one; | ||
|
||
'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 | ||
error message. | ||
|
||
|
||
.. image:: /pos_customer_required/static/description/frontend_pos_error_message.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/184/9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import test_pos |
Oops, something went wrong.