Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] pos_customer_wallet #300

Open
wants to merge 76 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d3ddd79
[ADD] pos_customer_wallet
carmenbianca Apr 7, 2022
35077ff
[ADD] pos_customer_wallet: Display wallet balance on POS payment screen
carmenbianca Apr 7, 2022
4139829
[ADD] pos_customer_wallet: Make global module toggle available in pos…
carmenbianca Apr 8, 2022
5321b00
[ADD] pos_customer_wallet: Journal demo data
carmenbianca Apr 11, 2022
8af348e
[ADD] pos_customer_wallet: Mandate selected customer when using walle…
carmenbianca Apr 13, 2022
c4cc880
[ADD] pos_customer_wallet: Check sufficient balance before POS purchase
carmenbianca Apr 13, 2022
4c65655
[FIX] account_customer_wallet: Write account_wallet to res.company in…
carmenbianca Apr 19, 2022
f0c496c
[ADD] pos_customer_wallet: Recompute balance based on POS statement l…
carmenbianca Apr 20, 2022
843035c
[ADD] pos_account_wallet: Update wallet balance in POS
carmenbianca Apr 21, 2022
9441262
[FIX] pos_customer_wallet: Update write_date on computation of wallet…
carmenbianca Apr 21, 2022
5acebf8
[REM] account_customer_wallet: Remove some fields and api.depends lines
carmenbianca Apr 22, 2022
45868c3
[ADD] pos_customer_wallet: Tests
carmenbianca Apr 22, 2022
789a5fa
[REF] pos_customer_wallet: Re-implement wallet computation using part…
carmenbianca Apr 22, 2022
2a5aabb
[REM] account_customer_wallet: Custom wallet toggle; depend on whethe…
carmenbianca Apr 22, 2022
32556c1
[FIX] account_customer_wallet: Search balance on all partners in fami…
carmenbianca Apr 28, 2022
d9123bf
[FIX] pos_customer_wallet: Avoid null error when no customer is selected
carmenbianca May 5, 2022
ce833b0
[ADD] account_customer_wallet: README.rst
carmenbianca May 6, 2022
63f8257
[UPD] Update pos_customer_wallet.pot
May 6, 2022
87582ba
[FIX] pos_customer_wallet: Partner form should not break for users wi…
carmenbianca Jun 15, 2022
748bc6a
pos_customer_wallet 12.0.1.0.1
github-grap-bot Jun 23, 2022
158bbe9
[FIX] SCRLfs → SC
carmenbianca Jun 29, 2022
c87c8db
[ADD] pos_customer_wallet: Show balance on ticket
remytms May 25, 2022
a0e7e0e
[FIX] pos_customer_wallet: typo
remytms May 25, 2022
c381b9c
[REF] *_customer_wallet: Create partner.get_all_partners_in_family
carmenbianca Jun 15, 2022
41e8a5d
[ADD] pos_customer_wallet_is_user
carmenbianca Jun 15, 2022
c636e3e
[ADD] *_customer_wallet: Change log entries
carmenbianca Jun 16, 2022
bf1635d
[UPD] Update pos_customer_wallet.pot
Jul 8, 2022
b207794
[UPD] changelog
github-grap-bot Jul 8, 2022
6d49cc5
[UPD] README.rst
github-grap-bot Jul 8, 2022
6064ade
pos_customer_wallet 12.0.1.1.0
github-grap-bot Jul 8, 2022
ace1e43
[FIX] SCRL fs → SC
carmenbianca Jul 11, 2022
7288dbe
[FIX] pos_customer_wallet : makes the modules working in an non proxy…
legalsylvain Aug 9, 2022
274c4d3
[REF] move overload function at the beginning of the javascript file,…
legalsylvain Aug 9, 2022
dd5e7c8
[FIX] force user to select a customer if wallet payment are selected,…
legalsylvain Aug 9, 2022
1cfa728
[ADD] implement wallet credit with product in the Point of Sale front…
legalsylvain Aug 9, 2022
26c78ab
[IMP] pos_customer_wallet : do not display wallet balance on ticket i…
legalsylvain Aug 9, 2022
a22401d
[IMP] pos_customer_wallet : display wallet balance on client detail s…
legalsylvain Aug 9, 2022
e219d44
[REF] pos_customer_wallet : refactor code and create a sub function t…
legalsylvain Aug 9, 2022
472a058
[IMP] pos_customer_wallet : update partner wallet balance with pendin…
legalsylvain Aug 9, 2022
dbabc59
[REF] Add GRAP as coauthor of the wallet modules
legalsylvain Aug 9, 2022
b6a1da0
[i18n] update pot files and add fr translations
legalsylvain Sep 5, 2022
879d8a8
[IMP] pos_customer_wallet : return early if no partners
legalsylvain Sep 9, 2022
3b8e5d4
[TR] update fr translation
legalsylvain Sep 12, 2022
6c11739
[FIX] pos_customer_wallet: Use where_calc method in pos_order_line co…
carmenbianca Sep 15, 2022
1c5aeda
[FIX] do not displayed 'undefined' where creating a new customer via UI
legalsylvain Sep 26, 2022
0620591
[PERF] refactor get_wallet_balance_pos_order_line(). 6 requests for 1…
legalsylvain Feb 28, 2023
00999c8
[REF] refactor _compute_customer_wallet_balance overload. Do not dupl…
legalsylvain Feb 28, 2023
9204d6f
[IMP] pos_customer_wallet : simplify PoS template
legalsylvain Feb 28, 2023
6506168
[IMP] pos_customer_wallet : display futur balance, if the order is co…
legalsylvain Feb 28, 2023
62f309a
[IMP] pos_customer_wallet : add possibility to have wallet negative
legalsylvain Feb 28, 2023
df0ae67
[translation] *_customer_wallet : update translation
legalsylvain Feb 28, 2023
2539dcc
[REF] Move minimum_wallet_amount field from pos.config to account.jou…
legalsylvain Mar 21, 2023
fa2c5a5
[REF] pos_customer_wallet : create a function is_balance_above_minimu…
legalsylvain Mar 21, 2023
7c2419f
[FIX] allow user to access to the wallet amount even if they are not …
legalsylvain Mar 21, 2023
a30d349
[UPD] Update pos_customer_wallet.pot
Mar 25, 2023
3239ddf
[UPD] README.rst
github-grap-bot Mar 25, 2023
bdd8f22
[FIX] pos_customer_wallet[_partner_is_user]: Pass required argument
carmenbianca Jun 26, 2023
eae089d
pos_customer_wallet 12.0.2.1.0
github-grap-bot Jun 29, 2023
25d2789
[FIX] pos_customer_wallet[_*]: Rename foodprint class
carmenbianca Sep 9, 2022
9dca606
[FIX] pos_customer_wallet_[*]: Repair maintainer tags in manifest
carmenbianca Jun 30, 2023
e50987e
[UPD] Run prettier
carmenbianca Jun 30, 2023
12dd399
[UPD] README.rst
github-grap-bot Jun 30, 2023
56fc15f
pos_customer_wallet 12.0.2.1.1
github-grap-bot Jun 30, 2023
44512a9
[UPD] Update pos_customer_wallet.pot
Jun 30, 2023
d804990
[IMP] pos_customer_wallet: black, isort, prettier
carmenbianca Jul 5, 2023
1818433
[MIG] pos_customer_wallet: Migration to 13.0
carmenbianca Jul 5, 2023
cdcac46
[MIG] pos_customer_wallet: Migration to 14.0
carmenbianca Jul 5, 2023
64249a0
[MIG] pos_customer_wallet: Migration to 15.0
carmenbianca Jul 6, 2023
e0e8249
[MIG] pos_customer_wallet: Migration to 16.0
carmenbianca Jul 6, 2023
1f0ba93
[REF] pos_customer_wallet: Use ORM instead of SQL queries
carmenbianca Sep 4, 2023
7d1cf54
[REM] pos_customer_wallet: Remove bank statement line method of walle…
carmenbianca Sep 8, 2023
b4c8c4c
[FIX] pos_customer_wallet: Add some copyright headers
carmenbianca Sep 8, 2023
3196438
[IMP] pos_customer_wallet: Some user-facing documentation
carmenbianca Sep 21, 2023
c670d0f
[IMP] pos_customer_wallet: Slightly refactor tests to use the same se…
carmenbianca May 17, 2024
0f8eeef
[IMP] pos_customer_wallet: After closing, correctly handle purchased …
carmenbianca May 17, 2024
dcf77e8
[REF] pos_customer_wallet: Refactor to .esm.js
carmenbianca May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account_customer_wallet/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def setUpClass(cls, *args, **kwargs):
[("type", "=", "sale")], limit=1
)
cls.payment_method = cls.env.ref("account.account_payment_method_manual_in")
cls.wallet_product = cls.env.ref("account_customer_wallet.product_wallet_demo")
cls.cash_account = cls.env["account.account"].search(
[("account_type", "=", "asset_cash")], limit=1
)
Expand Down
78 changes: 78 additions & 0 deletions pos_customer_wallet/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
=============================
Point of Sale Customer Wallet
=============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-coopiteasy%2Faddons-lightgray.png?logo=github
:target: https://github.com/coopiteasy/addons/tree/12.0/pos_customer_wallet
:alt: coopiteasy/addons

|badge1| |badge2| |badge3|


**Table of contents**

.. contents::
:local:

Changelog
=========

12.0.1.1.0 (2022-07-08)
~~~~~~~~~~~~~~~~~~~~~~~

**Features**

- Customer wallet balance is now displayed on tickets. (`#237 <https://github.com/coopiteasy/addons/issues/237>`_)

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

Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/addons/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 <https://github.com/coopiteasy/addons/issues/new?body=module:%20pos_customer_wallet%0Aversion:%2012.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
~~~~~~~

* Coop IT Easy SC
* GRAP

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

* `Coop IT Easy SC <https://coopiteasy.be>`_:

* Carmen Bianca Bakker
* Rémy Taymans

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

.. |maintainer-carmenbianca| image:: https://github.com/carmenbianca.png?size=40px
:target: https://github.com/carmenbianca
:alt: carmenbianca

Current maintainer:

|maintainer-carmenbianca|

This module is part of the `coopiteasy/addons <https://github.com/coopiteasy/addons/tree/12.0/pos_customer_wallet>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions pos_customer_wallet/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
32 changes: 32 additions & 0 deletions pos_customer_wallet/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 2022 Coop IT Easy SC
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Point of Sale Customer Wallet",
"summary": """
Enable usage of the Customer Wallet in the Point of Sale.""",
"version": "16.0.1.0.0",
"category": "Point of Sale",
"website": "https://github.com/coopiteasy/addons",
"author": "Coop IT Easy SC,GRAP",
"maintainers": ["carmenbianca"],
"license": "AGPL-3",
"application": False,
"depends": [
"point_of_sale",
"account_customer_wallet",
],
"excludes": [],
"assets": {
"point_of_sale.assets": [
"pos_customer_wallet/static/src/css/pos.css",
"pos_customer_wallet/static/src/js/**/*.js",
"pos_customer_wallet/static/src/xml/**/*.xml",
],
},
"data": [],
"demo": [
"demo/pos_payment_method_demo.xml",
"demo/product_product_demo.xml",
],
}
21 changes: 21 additions & 0 deletions pos_customer_wallet/demo/pos_payment_method_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
SPDX-FileCopyrightText: 2023 Coop IT Easy SC
SPDX-License-Identifier: AGPL-3.0-or-later
-->
<odoo>

<record id="customer_wallet_payment_method" model="pos.payment.method">
<field name="name">Customer Wallet</field>
<field
name="journal_id"
eval="ref('account_customer_wallet.account_journal_customer_wallet_demo')"
/>
<field name="split_transactions" eval="True" />
<field
name="outstanding_account_id"
eval="ref('account_customer_wallet.account_account_customer_wallet_demo')"
/>
</record>

</odoo>
10 changes: 10 additions & 0 deletions pos_customer_wallet/demo/product_product_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (C) 2022 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).-->
<odoo>
<record id="account_customer_wallet.product_wallet_demo" model="product.product">
<field name="available_in_pos" eval="True" />
</record>

</odoo>
113 changes: 113 additions & 0 deletions pos_customer_wallet/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_wallet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-28 23:07+0000\n"
"PO-Revision-Date: 2023-02-28 23:07+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:61
#, python-format
msgid "' without selecting a customer. Please select a customer or remove the order line(s)."
msgstr "' sans sélectionner un client. Veuillez sélectionner un client ou retirer la ou les lignes de ventes."

#. module: pos_customer_wallet
#: model_terms:ir.ui.view,arch_db:pos_customer_wallet.view_pos_config_form
msgid "<span class=\"o_form_label\">Minimum Wallet Amount</span>"
msgstr "<span class=\"o_form_label\">Montant minimum du compte client</span>"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:59
#, python-format
msgid "Cannot sell the product '"
msgstr "Vous ne pouvez pas vendre le produit '"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:44
#, python-format
msgid "Cannot use customer wallet payment method without selecting a customer.\n"
"\n"
" Please select a customer or use a different payment method."
msgstr "Vous ne pouvez pas utiliser un moyen de paiement de type compte client sans sélectionner un client.\n"
"\n"
" Veuillez sélectionner un client ou changer de moyen de paiement."

#. module: pos_customer_wallet
#: model:ir.model,name:pos_customer_wallet.model_res_partner
msgid "Contact"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:123
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:10
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:71
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:85
#, python-format
msgid "Customer Wallet Balance"
msgstr "Solde de compte client"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:43
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:57
#, python-format
msgid "Customer Wallet Balance:"
msgstr "Solde de compte client :"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:73
#, python-format
msgid "Customer wallet balance not sufficient"
msgstr "Le solde du compte client n'est pas suffisant"

#. module: pos_customer_wallet
#: model:ir.model.fields,field_description:pos_customer_wallet.field_pos_config__is_enabled_customer_wallet
msgid "Is Customer Wallet Enabled"
msgstr "Compte client activé"

#. module: pos_customer_wallet
#: model:ir.model.fields,field_description:pos_customer_wallet.field_pos_config__minimum_wallet_amount
msgid "Minimum Wallet Amount"
msgstr "Montant minimum du compte client"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:43
#: code:addons/pos_customer_wallet/static/src/js/screens.js:57
#, python-format
msgid "No customer selected"
msgstr "Aucun client sélectionné"

#. module: pos_customer_wallet
#: model:ir.model,name:pos_customer_wallet.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Paramétrage du point de vente"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:74
#, python-format
msgid "There is not enough balance in the customer's wallet to perform this order."
msgstr "Le solde du compte client est insuffisant pour réaliser cette vente."

#. module: pos_customer_wallet
#: model:ir.model.fields,help:pos_customer_wallet.field_pos_config__minimum_wallet_amount
#: model_terms:ir.ui.view,arch_db:pos_customer_wallet.view_pos_config_form
msgid "Usually 0. You can enter a negative value, if you want to accept that the customer wallet is negative. Maybe useful if the sale amount is slightly higher than the wallet amount, to avoid charging the customer a small amount."
msgstr "Habituellement 0. vous pouvez entrer une valeur négative, si vous souhaitez accepter que le customer wallet soit négatif. Peut-être utile si le montant de la vente, est légèrement supérieur au montant de la cagnotte, pour éviter de faire payer"

98 changes: 98 additions & 0 deletions pos_customer_wallet/i18n/pos_customer_wallet.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_customer_wallet
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:65
#, python-format
msgid "' without selecting a customer. Please select a customer or remove the order line(s)."
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:63
#, python-format
msgid "Cannot sell the product '"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:48
#, python-format
msgid "Cannot use customer wallet payment method without selecting a customer.\n"
"\n"
" Please select a customer or use a different payment method."
msgstr ""

#. module: pos_customer_wallet
#: model:ir.model,name:pos_customer_wallet.model_res_partner
msgid "Contact"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:135
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:10
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:71
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:85
#, python-format
msgid "Customer Wallet Balance"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:43
#: code:addons/pos_customer_wallet/static/src/xml/pos.xml:57
#, python-format
msgid "Customer Wallet Balance:"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:74
#, python-format
msgid "Customer wallet balance not sufficient"
msgstr ""

#. module: pos_customer_wallet
#: model:ir.model.fields,field_description:pos_customer_wallet.field_pos_config__is_enabled_customer_wallet
msgid "Is Customer Wallet Enabled"
msgstr ""

#. module: pos_customer_wallet
#: model:ir.model.fields,field_description:pos_customer_wallet.field_pos_config__minimum_wallet_amount
msgid "Minimum Wallet Amount"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:47
#: code:addons/pos_customer_wallet/static/src/js/screens.js:61
#, python-format
msgid "No customer selected"
msgstr ""

#. module: pos_customer_wallet
#: model:ir.model,name:pos_customer_wallet.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""

#. module: pos_customer_wallet
#. openerp-web
#: code:addons/pos_customer_wallet/static/src/js/screens.js:75
#, python-format
msgid "There is not enough balance in the customer's wallet to perform this order."
msgstr ""

4 changes: 4 additions & 0 deletions pos_customer_wallet/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import pos_config
from . import pos_payment_method
from . import pos_session
from . import res_partner
Loading
Loading