Skip to content

Commit

Permalink
[FIX] pos_partner_location_abstract: module description and _compute_…
Browse files Browse the repository at this point in the history
…qr_code_url function is updated
  • Loading branch information
geomer198 committed Dec 10, 2023
1 parent 1601e38 commit 9ebbc00
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
8 changes: 6 additions & 2 deletions pos_partner_location_abstract/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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**

Expand Down
2 changes: 1 addition & 1 deletion pos_partner_location_abstract/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""})
6 changes: 5 additions & 1 deletion pos_partner_location_abstract/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 5 additions & 2 deletions pos_partner_location_abstract/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,13 @@ <h1 class="title">POS Partner Location Abstract</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:44c004378d95f6318ea6e8220aa3b3fa79b28723469ea49d52382a5f5b708a6b
!! source digest: sha256:95d692c1f302f3309b7462b9568192326ab66920cbc6127ffb30e8a9e114f2f3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/pos/tree/16.0/pos_partner_location_abstract"><img alt="OCA/pos" src="https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_partner_location_abstract"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/pos&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module is base for module pos_partner_location_google_map (Google Map).</p>
<p>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.</p>
<p>NB: This is a core module which is meant to be used in further customisations.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down

0 comments on commit 9ebbc00

Please sign in to comment.