From 9ebbc00b6467d0f1a996295b471d73264e559c98 Mon Sep 17 00:00:00 2001 From: geomer198 Date: Sun, 10 Dec 2023 22:39:27 +0400 Subject: [PATCH] [FIX] pos_partner_location_abstract: module description and _compute_qr_code_url function is updated --- pos_partner_location_abstract/README.rst | 8 ++++++-- pos_partner_location_abstract/models/res_partner.py | 2 +- pos_partner_location_abstract/readme/DESCRIPTION.rst | 6 +++++- .../static/description/index.html | 7 +++++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/pos_partner_location_abstract/README.rst b/pos_partner_location_abstract/README.rst index bb6ff948b9..d2ff3d4a56 100644 --- a/pos_partner_location_abstract/README.rst +++ b/pos_partner_location_abstract/README.rst @@ -7,7 +7,7 @@ POS Partner Location Abstract !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:44c004378d95f6318ea6e8220aa3b3fa79b28723469ea49d52382a5f5b708a6b + !! source digest: sha256:95d692c1f302f3309b7462b9568192326ab66920cbc6127ffb30e8a9e114f2f3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -28,7 +28,11 @@ POS Partner Location Abstract |badge1| |badge2| |badge3| |badge4| |badge5| -This module is base for module pos_partner_location_google_map (Google Map). +This module implements base functionality for using different map providers in POS. +It allows to select partner location directly on a map and stores selected location in the res.partner model. +It also tries to evaluate partner's address from coordinates and provides a helper function that generates location QR code. + +NB: This is a core module which is meant to be used in further customisations. **Table of contents** diff --git a/pos_partner_location_abstract/models/res_partner.py b/pos_partner_location_abstract/models/res_partner.py index 0705287a1e..e3af6db49b 100644 --- a/pos_partner_location_abstract/models/res_partner.py +++ b/pos_partner_location_abstract/models/res_partner.py @@ -12,4 +12,4 @@ class ResPartner(models.Model): def _compute_qr_code_url(self): """Compute QR Code URL for map provider""" - self.write({"qr_code_url": ""}) + self.update({"qr_code_url": ""}) diff --git a/pos_partner_location_abstract/readme/DESCRIPTION.rst b/pos_partner_location_abstract/readme/DESCRIPTION.rst index 6746ae44a7..74b7883422 100644 --- a/pos_partner_location_abstract/readme/DESCRIPTION.rst +++ b/pos_partner_location_abstract/readme/DESCRIPTION.rst @@ -1 +1,5 @@ -This module is base for module pos_partner_location_google_map (Google Map). +This module implements base functionality for using different map providers in POS. +It allows to select partner location directly on a map and stores selected location in the res.partner model. +It also tries to evaluate partner's address from coordinates and provides a helper function that generates location QR code. + +NB: This is a core module which is meant to be used in further customisations. diff --git a/pos_partner_location_abstract/static/description/index.html b/pos_partner_location_abstract/static/description/index.html index 939e5bc50b..d20e987594 100644 --- a/pos_partner_location_abstract/static/description/index.html +++ b/pos_partner_location_abstract/static/description/index.html @@ -367,10 +367,13 @@

POS Partner Location Abstract

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:44c004378d95f6318ea6e8220aa3b3fa79b28723469ea49d52382a5f5b708a6b +!! source digest: sha256:95d692c1f302f3309b7462b9568192326ab66920cbc6127ffb30e8a9e114f2f3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runboat

-

This module is base for module pos_partner_location_google_map (Google Map).

+

This module implements base functionality for using different map providers in POS. +It allows to select partner location directly on a map and stores selected location in the res.partner model. +It also tries to evaluate partner’s address from coordinates and provides a helper function that generates location QR code.

+

NB: This is a core module which is meant to be used in further customisations.

Table of contents