Skip to content

Commit

Permalink
Merge pull request #6 from versada/17.0-mig-purchase_advance_payment
Browse files Browse the repository at this point in the history
17.0 mig purchase advance payment
  • Loading branch information
maciej-wichowski authored Apr 8, 2024
2 parents faeea98 + 93cf953 commit 074556e
Show file tree
Hide file tree
Showing 24 changed files with 2,337 additions and 0 deletions.
103 changes: 103 additions & 0 deletions purchase_advance_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
========================
Purchase Advance Payment
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c8c4c2c055f100b2245f4176a379aa4c1d6ea3e28c815fd9faa0ec6e109f71b7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/17.0/purchase_advance_payment
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_advance_payment
: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/purchase-workflow&target_branch=17.0
:alt: Try me on Runboat

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

The module allows to add advance payments on purchase orders and Request
for Quotation. The advance payments are allowed even before confirmation
and before starting the billing process.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

- Go to a purchase order.
- Click on "Pay Purchase Advance".
- Select the Journal and specify the amount of the advanced payment.
- "Make Advance Payment".

When generating the invoice, the system displays the advanced payments,
select those you want to add to the invoice.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/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/purchase-workflow/issues/new?body=module:%20purchase_advance_payment%0Aversion:%2017.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
-------

* Forgeflow

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

- Mateu Griful <mateu.griful@forgeflow.com>

- Lois Rilo <lois.rilo@forgeflow.com>

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

- Son Ho <sonhd@trobz.com>

Other credits
-------------

The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/17.0/purchase_advance_payment>`_ 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 purchase_advance_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
19 changes: 19 additions & 0 deletions purchase_advance_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2021 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)

{
"name": "Purchase Advance Payment",
"version": "17.0.1.0.0",
"author": "Forgeflow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"category": "Purchase",
"license": "AGPL-3",
"summary": "Allow to add advance payments on purchase orders",
"depends": ["purchase"],
"data": [
"wizard/purchase_advance_payment_wizard_view.xml",
"views/purchase_view.xml",
"security/ir.model.access.csv",
],
"installable": True,
}
220 changes: 220 additions & 0 deletions purchase_advance_payment/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_advance_payment
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-20 10:15+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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: purchase_advance_payment
#: model:ir.model,name:purchase_advance_payment.model_account_voucher_wizard_purchase
msgid "Account Voucher Wizard Purchase"
msgstr "Asistente de compra de vales de cuenta"

#. module: purchase_advance_payment
#: model:ir.actions.act_window,name:purchase_advance_payment.action_view_account_voucher_wizard
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Advance Payment"
msgstr "Pago por Adelantado"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_purchase_order__advance_payment_status
msgid "Advance Payment Status"
msgstr "Estado del pago anticipado"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.purchase_order_kpis_tree
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.purchase_order_view_tree
msgid "Amount Residual"
msgstr "Importe residual"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__amount_total
msgid "Amount Total"
msgstr "Importe total"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__amount_advance
msgid "Amount advanced"
msgstr "Importe anticipado"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Amount in Order Currency"
msgstr "Importe en la moneda del pedido"

#. module: purchase_advance_payment
#. odoo-python
#: code:addons/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py:0
#, python-format
msgid "Amount of advance is greater than residual amount on purchase"
msgstr "El importe anticipado es mayor que el importe pendiente del pedido"

#. module: purchase_advance_payment
#. odoo-python
#: code:addons/purchase_advance_payment/wizard/purchase_advance_payment_wizard.py:0
#, python-format
msgid "Amount of advance must be positive."
msgstr "El importe del anticipo debe ser positivo."

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Cancel"
msgstr "Cancelar"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__create_date
msgid "Created on"
msgstr "Creado el"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__currency_amount
msgid "Curr. amount"
msgstr "Importe en divisa"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__currency_id
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Currency"
msgstr "Moneda"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__date
msgid "Date"
msgstr "Fecha"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__id
msgid "ID"
msgstr "ID"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__journal_id
msgid "Journal"
msgstr "Diario"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__journal_currency_id
msgid "Journal Currency"
msgstr "Moneda del diario"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase____last_update
msgid "Last Modified on"
msgstr "última modificación el"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__write_uid
msgid "Last Updated by"
msgstr "última modificación por"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__write_date
msgid "Last Updated on"
msgstr "Última actualización el"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Make advance payment"
msgstr "Realizar anticipo"

#. module: purchase_advance_payment
#: model:ir.model.fields.selection,name:purchase_advance_payment.selection__purchase_order__advance_payment_status__not_paid
msgid "Not Paid"
msgstr "No pagado"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Operation"
msgstr "Operación"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__order_id
msgid "Order"
msgstr "Pedido"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Order Currency"
msgstr "Moneda del pedido"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Order Due Amount"
msgstr "Importe pendiente del pedido"

#. module: purchase_advance_payment
#: model:ir.model.fields.selection,name:purchase_advance_payment.selection__purchase_order__advance_payment_status__paid
msgid "Paid"
msgstr "Pagado"

#. module: purchase_advance_payment
#: model:ir.model.fields.selection,name:purchase_advance_payment.selection__purchase_order__advance_payment_status__partial
msgid "Partially Paid"
msgstr "Pagado parcialmente"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_purchase_order__account_payment_ids
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.purchase_order_form
msgid "Pay purchase advanced"
msgstr "Pagar anticipo de compra"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.view_account_voucher_wizard
msgid "Payment Method"
msgstr "Método de pago"

#. module: purchase_advance_payment
#: model_terms:ir.ui.view,arch_db:purchase_advance_payment.purchase_order_form
msgid "Payment advances"
msgstr "Anticipos"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_purchase_order__payment_line_ids
msgid "Payment move lines"
msgstr "Líneas de asiento de pago"

#. module: purchase_advance_payment
#: model:ir.model,name:purchase_advance_payment.model_account_payment
msgid "Payments"
msgstr "Pagos"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_payment__purchase_id
msgid "Purchase"
msgstr "Compra"

#. module: purchase_advance_payment
#: model:ir.model,name:purchase_advance_payment.model_purchase_order
msgid "Purchase Order"
msgstr "Pedido de compra"

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_account_voucher_wizard_purchase__payment_ref
msgid "Ref."
msgstr "Ref."

#. module: purchase_advance_payment
#: model:ir.model.fields,field_description:purchase_advance_payment.field_purchase_order__amount_residual
msgid "Residual amount"
msgstr "Importe pendiente"
Loading

0 comments on commit 074556e

Please sign in to comment.