Skip to content

Commit

Permalink
[ADD] pos_customer_screen_partner_location: Module added.
Browse files Browse the repository at this point in the history
  • Loading branch information
geomer198 committed May 21, 2024
1 parent ffa9ef0 commit dd8041e
Show file tree
Hide file tree
Showing 17 changed files with 887 additions and 0 deletions.
106 changes: 106 additions & 0 deletions pos_customer_screen_partner_location/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
====================================
POS Customer Screen Partner Location
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3a719765d3b0bd14c8e510cdea2b8dba4c4a53cd71560543ff2b24f5c27c039c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/16.0/pos_customer_screen_partner_location
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_customer_screen_partner_location
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/pos&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows POS customers to select their location on map on POS customer screen.

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

POS Partner Location module allows to select partner location on map in POS. However sometimes you would like your customer to select this location himself.
For example to select an address for goods delivery.

Configuration
=============

This module doesn't require any special configuration. However it requires POS Partner Location module configured properly.

Usage
=====

In POS:

* Click the "Customer" button to open the customer list.
* Click on the "Details" button on the customer record to open details.
* Click on the "Screen" icon which is located next to the location button.

After that pick on the customer screen:

* Select a location on map.
* Click "Confirm" button.

Selected location will be saved in the customer's partner profile.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pos/issues/new?body=module:%20pos_customer_screen_partner_location%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Cetmix

Contributors
~~~~~~~~~~~~

* Cetmix <https://cetmix.com/>

* Ivan Sokolov
* Maksim Shurupov

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/16.0/pos_customer_screen_partner_location>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions pos_customer_screen_partner_location/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import controllers
27 changes: 27 additions & 0 deletions pos_customer_screen_partner_location/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) 2024 Cetmix OÜ
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "POS Customer Screen Partner Location",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"summary": "Select partner location in POS on the customer screen",
"author": "Cetmix, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": ["pos_partner_location_abstract"],
"data": [
"views/customer_screen_template.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_customer_screen_partner_location/static/src/js/*.js",
"pos_customer_screen_partner_location/static/src/xml/*.xml",
],
"web.assets_tests": [],
"web.assets_frontend": [
"pos_customer_screen_partner_location/static/src/portal/*.js",
],
},
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
20 changes: 20 additions & 0 deletions pos_customer_screen_partner_location/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import http
from odoo.http import request


class CustomerScreenPartnerLocation(http.Controller):
@http.route(
"/customer_screen_location/<int:partner_id>/<int:pos_config_id>/",
type="http",
auth="user",
website=True,
)
def customer_screen_location(self, partner_id, pos_config_id):
partner = request.env["res.partner"].browse(partner_id)
return request.render(
"pos_customer_screen_partner_location.customer_screen_pos",
{
"partner": partner,
"config_id": pos_config_id,
},
)
1 change: 1 addition & 0 deletions pos_customer_screen_partner_location/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module doesn't require any special configuration. However it requires POS Partner Location module configured properly.
2 changes: 2 additions & 0 deletions pos_customer_screen_partner_location/readme/CONTEXT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
POS Partner Location module allows to select partner location on map in POS. However sometimes you would like your customer to select this location himself.
For example to select an address for goods delivery.
4 changes: 4 additions & 0 deletions pos_customer_screen_partner_location/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Cetmix <https://cetmix.com/>

* Ivan Sokolov
* Maksim Shurupov
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows POS customers to select their location on map on POS customer screen.
12 changes: 12 additions & 0 deletions pos_customer_screen_partner_location/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
In POS:

* Click the "Customer" button to open the customer list.
* Click on the "Details" button on the customer record to open details.
* Click on the "Screen" icon which is located next to the location button.

After that pick on the customer screen:

* Select a location on map.
* Click "Confirm" button.

Selected location will be saved in the customer's partner profile.
Loading

0 comments on commit dd8041e

Please sign in to comment.