Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
80 changes: 80 additions & 0 deletions pos_payment_credit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
============================
Point of Sale Payment Credit
============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:4b220ca9d7cad552447dec11f0c3ea7fe8f96d137b6abb74d27a99dc536890f8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/pos_payment_credit
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pos-18-0/pos-18-0-pos_payment_credit
: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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of Point of Sale.

Allow using the credit amount from the return pos order.

**Table of contents**

.. contents::
:local:

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_payment_credit%0Aversion:%2018.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
-------

* Trobz

Contributors
------------

- Trobz <`https://www.trobz.com\\> <https://www.trobz.com\>>`__

- Phan Hong Phuc <phucph@trobz.com>

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/18.0/pos_payment_credit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions pos_payment_credit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
30 changes: 30 additions & 0 deletions pos_payment_credit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2016-2018 Sylvain LE GAL (https://twitter.com/legalsylvain)
# Copyright 2018 David Vidal <david.vidal@tecnativa.com>
# Copyright 2018 Lambda IS DOOEL <https://www.lambda-is.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Point of Sale Payment Credit",
"version": "18.0.1.0.0",
"category": "Point Of Sale",
"author": "Trobz, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"license": "AGPL-3",
"depends": [
"point_of_sale",
],
"data": [
"data/payment_method_data.xml",
"views/payment_method_view.xml",
"views/res_partner_view.xml",
"views/res_config_settings_view.xml",
"wizard/pos_make_payment_view.xml",
],
"assets": {
"point_of_sale._assets_pos": [
"pos_payment_credit/static/src/app/*",
"pos_payment_credit/static/src/overrides/**/*",
],
},
"installable": True,
}
10 changes: 10 additions & 0 deletions pos_payment_credit/data/payment_method_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="credit_payment_method" model="pos.payment.method">
<field name="name">Credit</field>
<field name="type">bank</field>
<field name="is_credit" eval="True" />
<field name="sequence">100</field>
<field name="company_id" ref="base.main_company" />
</record>
</odoo>
204 changes: 204 additions & 0 deletions pos_payment_credit/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_payment_credit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-04 09:27+0000\n"
"PO-Revision-Date: 2026-02-04 09:27+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_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid " will be applied."
msgstr " sera appliqué."

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid " will be used."
msgstr "sera utilisé"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "A refund of "
msgstr "Un avoir de "

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_pos_make_payment__is_credit
msgid "Allow to add credit for members"
msgstr "Permettre d'allouer un crédit aux membres"

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_pos_config__auto_apply_credit_amount
#: model:ir.model.fields,field_description:pos_payment_credit.field_res_config_settings__pos_auto_apply_credit_amount
msgid "Automatic Pay by Credit Amount"
msgstr "Paiement automatique par montant de crédit"

#. module: pos_payment_credit
#: model_terms:ir.ui.view,arch_db:pos_payment_credit.res_config_settings_view_form
msgid "Automatically Apply Credit Amount"
msgstr "Appliquer automatiquement le montant du crédit"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/xml/pos.xml:0
#: model:ir.model.fields,field_description:pos_payment_credit.field_res_partner__credit_amount
#: model:ir.model.fields,field_description:pos_payment_credit.field_res_users__credit_amount
msgid "Available Credit"
msgstr "Crédit disponible"

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_account_bank_statement_line
msgid "Bank Statement Line"
msgstr "Ligne de relevé bancaire"

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_res_config_settings
msgid "Config Settings"
msgstr "Paramètres de configuration"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "Confirming"
msgstr "Confirmer"

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

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/xml/pos.xml:0
#: model:pos.payment.method,name:pos_payment_credit.credit_payment_method
#: model_terms:ir.ui.view,arch_db:pos_payment_credit.view_partner_property_form_inherit
msgid "Credit"
msgstr "Crédit"

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_res_partner__credit_line_ids
#: model:ir.model.fields,field_description:pos_payment_credit.field_res_users__credit_line_ids
#: model_terms:ir.ui.view,arch_db:pos_payment_credit.view_partner_property_form_inherit
msgid "Credit History"
msgstr "Historique de crédit"

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_account_bank_statement_line__credit_payment
msgid "Credit Payment"
msgstr "Paiement à crédit"

#. module: pos_payment_credit
#. odoo-python
#: code:addons/pos_payment_credit/models/pos_order.py:0
msgid "Customer not found."
msgstr "Client introuvable"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "Error"
msgstr "Erreur"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "Error validating credit amount"
msgstr "Erreur lors de la validation du montant du crédit"

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_pos_session__has_credit_payment
msgid "Has Credit Payment"
msgstr "Paiement à crédit existant"

#. module: pos_payment_credit
#: model:ir.model.fields,help:pos_payment_credit.field_account_bank_statement_line__credit_payment
msgid "Indicates that this payment was made using customer's credit amount."
msgstr "Indique que le paiement a été effectué avec le crédit du client."

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_pos_payment_method__is_credit
msgid "Is Credit"
msgstr "Permettre d'allouer un crédit aux membres"

#. module: pos_payment_credit
#: model:ir.model.fields,field_description:pos_payment_credit.field_account_bank_statement_line__partner_id
msgid "Partner"
msgstr "Partenaire"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "Pay using the member's available credit?"
msgstr "Payer en utilisant le crédit disponible du membre?"

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "Please select the Customer"
msgstr "Veuillez sélectionner le client"

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

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_pos_make_payment
msgid "Point of Sale Make Payment Wizard"
msgstr "Assistant de paiement du point de vente"

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_pos_order
msgid "Point of Sale Orders"
msgstr "Commandes du point de vente"

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_pos_payment_method
msgid "Point of Sale Payment Methods"
msgstr "Modes de paiement du point de vente"

#. module: pos_payment_credit
#: model:ir.model,name:pos_payment_credit.model_pos_session
msgid "Point of Sale Session"
msgstr "Session du point de vente"

#. module: pos_payment_credit
#. odoo-python
#: code:addons/pos_payment_credit/models/pos_order.py:0
msgid "The Credit amount is invalid."
msgstr "Le montant du crédit est invalide."

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "The credit amount is invalid. Maximum value: "
msgstr "Le montant du crédit est invalide. Valeur maximale: "

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "The credit of "
msgstr "Le crédit de "

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "There is already a credit payment in progress."
msgstr "Un paiement à crédit est déjà en cours."

#. module: pos_payment_credit
#. odoo-javascript
#: code:addons/pos_payment_credit/static/src/js/screen.esm.js:0
msgid "You need to select a customer first."
msgstr "Vous devez d’abord sélectionner un client."
Loading
Loading