diff --git a/pos_require_customer/README.rst b/pos_require_customer/README.rst new file mode 100644 index 00000000..ed97408f --- /dev/null +++ b/pos_require_customer/README.rst @@ -0,0 +1,73 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Module name +=========== + +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. + + +Installation +============ + +This module depends on the `point_of_sale` Odoo official module. + +Configuration +============= + +To configure this module, you need to: + +* go to point of sale -> configuration -> point of sales +* select the point of sales you want configure +* If you want to require the partner for orders in this pos, select the + checkbox + +Usage +===== + +If a customer is not selected, the pos ui will display an error message. +In the backend the customer field is required when needed. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed feedback +`here `_. + + +Credits +======= + +Contributors +------------ + +* Jos De Graeve +* Pedro M. Baeza ( reviews & feedback ) +* Sylvain LE GAL - https://github.com/legalsylvain ( reviews & feedback ) + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. diff --git a/pos_require_customer/__init__.py b/pos_require_customer/__init__.py index 43495789..f5ba686b 100644 --- a/pos_require_customer/__init__.py +++ b/pos_require_customer/__init__.py @@ -1 +1,2 @@ -from . import pos +# -*- coding: utf-8 -*- +from . import models \ No newline at end of file diff --git a/pos_require_customer/__openerp__.py b/pos_require_customer/__openerp__.py index 492786bc..5daae511 100644 --- a/pos_require_customer/__openerp__.py +++ b/pos_require_customer/__openerp__.py @@ -41,7 +41,7 @@ In the backend the customer field is required when needed. 'depends': ['point_of_sale'], 'data': [ 'static/src/xml/templates.xml', - 'pos_view.xml', + 'views/pos_view.xml', ], 'demo': [], 'test': [], diff --git a/pos_require_customer/models/__init__.py b/pos_require_customer/models/__init__.py new file mode 100644 index 00000000..7060bd48 --- /dev/null +++ b/pos_require_customer/models/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import pos \ No newline at end of file diff --git a/pos_require_customer/pos.py b/pos_require_customer/models/pos.py similarity index 100% rename from pos_require_customer/pos.py rename to pos_require_customer/models/pos.py diff --git a/pos_require_customer/pos_view.xml b/pos_require_customer/views/pos_view.xml similarity index 100% rename from pos_require_customer/pos_view.xml rename to pos_require_customer/views/pos_view.xml