Skip to content

Commit

Permalink
Merge PR #1226 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Sep 19, 2024
2 parents f808797 + 9ab1267 commit 05514ec
Show file tree
Hide file tree
Showing 24 changed files with 1,781 additions and 0 deletions.
110 changes: 110 additions & 0 deletions pos_session_pay_invoice/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
=======================
POS Session Pay invoice
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:6eac7dbff1f6e08ae835df882a549b193c4d037be692dfd6913960c06245184b
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-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_session_pay_invoice
: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_session_pay_invoice
: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 modules allows to pay an existing Supplier Invoice / Customer Refund, or
to collect payment for an existing Customer Invoice, from within a POS Session.

**Table of contents**

.. contents::
:local:

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

#. Go to *Point of Sale / Configuration / Payment Methods*
and ensure that at least one payment method with a journal type "cash"
is created (or create one if it does not exist).

#. Go to *Point of Sale / Configuration / Settings*
Select a Point of Sale and ensure than in the payment methods section,
at least one payment method has a journal type "cash"

Usage
=====

#. Go to *Point of Sale / Dashboard* and create and open or access to an
already open POS Session.
#. Open the POS Session form view on the Backend.
#. Press the button **Pay Supplier** to pay a Supplier Invoice or **Pay Refund** for a Customer
Refund. It will be paid using Cash.
#. Select **Get Payment from Invoice** to receive a payment of an
existing Customer Invoice or a Supplier Refund. You will need to select
a Journal if the POS Config has defined multiple Payment Methods.

Known issues / Roadmap
======================

* Cannot pay invoices in a different currency than that defined in the journal
associated to the payment method used to pay/collect payment.

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_session_pay_invoice%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
~~~~~~~

* Creu Blanca

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

* Enric Tobella <[email protected]>
* Jordi Ballester <[email protected]>
* Tecnativa (https://www.tecnativa.com):

* Carlos Lopez

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_session_pay_invoice>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions pos_session_pay_invoice/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
from . import wizard
17 changes: 17 additions & 0 deletions pos_session_pay_invoice/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{
"name": "POS Session Pay invoice",
"version": "16.0.1.0.0",
"category": "Point Of Sale",
"author": "Creu Blanca, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"summary": "Pay and receive invoices from PoS Session",
"license": "LGPL-3",
"depends": ["point_of_sale", "account_cash_invoice"],
"data": [
"wizard/cash_pay_invoice.xml",
"views/pos_session.xml",
],
}
227 changes: 227 additions & 0 deletions pos_session_pay_invoice/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_session_pay_invoice
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-03-23 00:46+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.view_pos_session_form
msgid ""
"<span class=\"o_stat_text\">Get Payment</span>\n"
" <span class=\"o_stat_text\">from Invoice</span>"
msgstr ""
"<span class=\"o_stat_text\">Obtener pago</span>\n"
" <span class=\"o_stat_text\">desde factura</span>"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.view_pos_session_form
msgid ""
"<span class=\"o_stat_text\">Pay Supplier</span>\n"
" <span class=\"o_stat_text\">Invoice</span>"
msgstr ""
"<span class=\"o_stat_text\">Pagar factura</span>\n"
" <span class=\"o_stat_text\">de proveedor</span>"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.view_pos_session_form
msgid ""
"<span class=\"o_stat_text\">Pay</span>\n"
" <span class=\"o_stat_text\">Refund</span>"
msgstr ""
"<span class=\"o_stat_text\">Pagar</span>\n"
" <span class=\"o_stat_text\">Rectificativa</span>"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__amount
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__amount
msgid "Amount"
msgstr "Importe"

#. module: pos_session_pay_invoice
#: code:addons/pos_session_pay_invoice/wizard/cash_invoice_in.py:0
#, python-format
msgid "Bank Statement was not found"
msgstr "No se encontró el extracto bancario"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.cash_invoice_in_form
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.cash_invoice_out_form
msgid "Cancel"
msgstr "Cancelar"

#. module: pos_session_pay_invoice
#: model:ir.model,name:pos_session_pay_invoice.model_cash_invoice_in
msgid "Cash invoice in"
msgstr "Factura al contado en"

#. module: pos_session_pay_invoice
#: model:ir.actions.act_window,name:pos_session_pay_invoice.action_pos_invoice_out
msgid "Collect Payment from Invoice"
msgstr "Cobrar el pago de la factura"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__company_id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__company_id
msgid "Company"
msgstr "Compañía"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__create_uid
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__create_date
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__create_date
msgid "Created on"
msgstr "Creado en"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__currency_id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__currency_id
msgid "Currency"
msgstr "Moneda"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_cash_invoice_in__display_name
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__display_name
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__display_name
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_order__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_cash_invoice_in__id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_order__id
msgid "ID"
msgstr "ID"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__move_id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__move_id
msgid "Invoice"
msgstr "Factura"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_cash_invoice_in____last_update
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in____last_update
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out____last_update
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_order____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__write_uid
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__write_date
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: pos_session_pay_invoice
#: model:ir.actions.act_window,name:pos_session_pay_invoice.action_pos_invoice_in
#: model:ir.actions.act_window,name:pos_session_pay_invoice.action_pos_invoice_in_control
msgid "Pay invoice"
msgstr "Factura de pago"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__payment_method_id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__payment_method_id
msgid "Payment Method"
msgstr "Modo de pago"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__payment_method_count
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__payment_method_count
msgid "Payment Method Count"
msgstr "Método de Pago Recuento"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__payment_method_ids
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__payment_method_ids
msgid "Payment methods"
msgstr "Modos de pago"

#. module: pos_session_pay_invoice
#: model:ir.model,name:pos_session_pay_invoice.model_pos_order
msgid "Point of Sale Orders"
msgstr "Pedidos del punto de venta"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__name
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__name
msgid "Reason"
msgstr "Razón"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.cash_invoice_in_form
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.cash_invoice_out_form
msgid "Register"
msgstr "Registrar"

#. module: pos_session_pay_invoice
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_in__session_id
#: model:ir.model.fields,field_description:pos_session_pay_invoice.field_pos_box_cash_invoice_out__session_id
msgid "Session"
msgstr "Sesión"

#. module: pos_session_pay_invoice
#: model_terms:ir.ui.view,arch_db:pos_session_pay_invoice.view_pos_config_kanban
msgid "Summary"
msgstr "Resumen"

#. module: pos_session_pay_invoice
#: code:addons/pos_session_pay_invoice/wizard/cash_invoice_in.py:0
#, python-format
msgid "There is no cash register for this Pos session"
msgstr "No hay caja registradora para esta sesión de TPV"

#. module: pos_session_pay_invoice
#: model:ir.model,name:pos_session_pay_invoice.model_pos_box_cash_invoice_in
msgid "pos box cash invoice in"
msgstr "factura de caja en efectivo en"

#. module: pos_session_pay_invoice
#: model:ir.model,name:pos_session_pay_invoice.model_pos_box_cash_invoice_out
msgid "pos box cash invoice out"
msgstr "caja pdv factura en efectivo"

#~ msgid ""
#~ "<span class=\"o_stat_text\">Collect Payment</span>\n"
#~ " <span class=\"o_stat_text\">from Invoice</span>"
#~ msgstr ""
#~ "<span class = \"o_stat_text\"> Cobrar pago </span>\n"
#~ " <span class = \"o_stat_text\"> de la factura </"
#~ "span>"

#~ msgid ""
#~ "<span class=\"o_stat_text\">Pay</span>\n"
#~ " <span class=\"o_stat_text\">Invoice</span>"
#~ msgstr ""
#~ "<span class=\"o_stat_text\">Pagado</span>\n"
#~ " <span class=\"o_stat_text\">Factura</span>"

#~ msgid "cash.invoice.in"
#~ msgstr "cash.invoice.in"

#~ msgid "cash.invoice.out"
#~ msgstr "cash.invoice.out"
Loading

0 comments on commit 05514ec

Please sign in to comment.