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] account_cash_discount_write_off: migration to v16.0 #708

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5a8aebd
[ADD] Module which create a writeoff when paying an invoice (with a d…
benwillig Mar 9, 2018
c846ad6
[FIX] Update file's headers (copyright, encoding)
benwillig Mar 29, 2018
ee26aa5
[CHG] Don't allow to pay with discount if the payment line is not lin…
benwillig Mar 29, 2018
56b4048
[CHG] Create the tax adjustment based on move lines instead of invoic…
benwillig Mar 29, 2018
e8b20c7
[FIX] Round the tax amount to avoid unbalanced entries
benwillig Aug 22, 2018
1f08728
[10.0][IMP] account_cash_discount_base: Add precision to discounts
rousseldenis Oct 19, 2018
32b21f4
[ADD] handle supplier refund when paying a supplier invoice which con…
benwillig Nov 28, 2018
f2c0334
[UPD] Update account_cash_discount_write_off.pot
oca-travis Feb 13, 2019
c7c45a7
[WIP] account_cash_discount_base/write_off/payment migration
benwillig Jun 8, 2020
c7d2086
[MIG] account_cash_discount_write_off to v13
benwillig Jun 10, 2020
9edbfe4
[FIX] pre-commit
benwillig Jun 10, 2020
38cf856
[FIX] updated /po files to prevent errors
benwillig Aug 17, 2020
a661649
[FIX] Fix pre-commit + generate README
acsonefho Nov 9, 2020
12b0c4e
[IMP] account_cash_discount_write_off: black, isort, prettier
hkapatel-initos Sep 24, 2021
6266a93
[MIG] account_cash_discount_write_off: Migration to 14.0
hkapatel-initos Sep 24, 2021
b7a3600
Copy tax tags to new lines
fkantelberg Jan 14, 2022
f0dce7d
Generate the discount before reconiliation
fkantelberg Jan 14, 2022
bfb7110
[UPD] Update account_cash_discount_write_off.pot
oca-travis Jan 21, 2022
e19cbeb
[UPD] README.rst
OCA-git-bot Jan 21, 2022
fe736ec
[UPD] README.rst
OCA-git-bot Sep 3, 2023
9905fa8
Update translation files
weblate Oct 9, 2023
2efa53c
Added translation using Weblate (Spanish)
Ivorra78 Dec 15, 2023
b681870
Translated using Weblate (Spanish)
Ivorra78 Dec 15, 2023
d015264
[IMP] account_invoice_check_total: black, isort, prettier
AnizR Feb 5, 2024
28647b3
[16.0][MIG] account_cash_discount_write_off: migration to v16.0
AnizR Feb 5, 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
94 changes: 94 additions & 0 deletions account_cash_discount_write_off/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
===============================
Account Cash Discount Write Off
===============================

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

.. |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%2Faccount--payment-lightgray.png?logo=github
:target: https://github.com/OCA/account-payment/tree/16.0/account_cash_discount_write_off
:alt: OCA/account-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_cash_discount_write_off
: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/account-payment&target_branch=16.0
:alt: Try me on Runboat

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

Create an automatic write-off for payment with discount on the payment order
confirmation. If the cash discount amount is computed based on the total
amount, the created write-off will also contains tax adjustments. This
adjustments are computed based on the discount percent configured on the
related invoice.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Create a supplier invoice
#. In the "Other Info" tab, you can configure a discount in percent and a discount delay in days
#. Validate the invoice
#. Create a payment order and add the previously created invoice using the search based on the cash discount due date
#. Validate your payment order till the last state
#. The invoice is now marked as "Paid".

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-payment/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/account-payment/issues/new?body=module:%20account_cash_discount_write_off%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
~~~~~~~

* ACSONE SA/NV

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

* Benjamin Willig <[email protected]>
* Christelle De Coninck (ACSONE) <[email protected]>
* Helly kapatel <[email protected]>

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/account-payment <https://github.com/OCA/account-payment/tree/16.0/account_cash_discount_write_off>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_cash_discount_write_off/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions account_cash_discount_write_off/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Cash Discount Write Off",
"summary": """
Create an automatic writeoff for payment with discount on the payment
order confirmation""",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-payment",
"depends": ["account_cash_discount_payment"],
"data": ["views/res_company.xml"],
"demo": [],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_cash_discount_write_off
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid "Cash Discount Write-Off"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_account_id
msgid "Cash Discount Write-Off Account"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_journal_id
msgid "Cash Discount Write-Off Journal"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_res_company
msgid "Companies"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__display_name
msgid "Display Name"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__id
msgid "ID"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_line
msgid "Payment Lines"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_order
msgid "Payment Order"
msgstr ""

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Account"
msgstr ""

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Journal"
msgstr ""

#. module: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid ""
"You have to fill in journal and account for cash discount write-off on the "
"company."
msgstr ""
89 changes: 89 additions & 0 deletions account_cash_discount_write_off/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_cash_discount_write_off
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-15 19:33+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: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid "Cash Discount Write-Off"
msgstr "Amortización del descuento por pronto pago"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_account_id
msgid "Cash Discount Write-Off Account"
msgstr "Cuenta de regularización del descuento por pronto pago"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_journal_id
msgid "Cash Discount Write-Off Journal"
msgstr "Diario de descuentos por pronto pago"

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__id
msgid "ID"
msgstr "ID (identificación)"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company____last_update
msgid "Last Modified on"
msgstr "Última modificación el"

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_line
msgid "Payment Lines"
msgstr "Líneas de pago"

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_order
msgid "Payment Order"
msgstr "Orden de pago"

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Account"
msgstr "Cuenta de Cancelación"

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Journal"
msgstr "Diario de amortizaciones"

#. module: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid ""
"You have to fill in journal and account for cash discount write-off on the "
"company."
msgstr ""
"Hay que rellenar el libro diario y contabilizar la amortización del "
"descuento por pronto pago en la empresa."
87 changes: 87 additions & 0 deletions account_cash_discount_write_off/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_cash_discount_write_off
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid "Cash Discount Write-Off"
msgstr "Escompte (écart)"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_account_id
msgid "Cash Discount Write-Off Account"
msgstr "Compte d'écart de l'escompte"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__default_cash_discount_writeoff_journal_id
msgid "Cash Discount Write-Off Journal"
msgstr "Journal d'écart de l'escompte"

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_res_company
msgid "Companies"
msgstr "Sociétés"

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__display_name
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__display_name
msgid "Display Name"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order__id
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company__id
msgid "ID"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_line____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_account_payment_order____last_update
#: model:ir.model.fields,field_description:account_cash_discount_write_off.field_res_company____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_line
msgid "Payment Lines"
msgstr "Lignes de paiement"

#. module: account_cash_discount_write_off
#: model:ir.model,name:account_cash_discount_write_off.model_account_payment_order
msgid "Payment Order"
msgstr "Ordre de paiement"

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Account"
msgstr "Compte d'écart"

#. module: account_cash_discount_write_off
#: model_terms:ir.ui.view,arch_db:account_cash_discount_write_off.res_company_form_view
msgid "Write-Off Journal"
msgstr "Journal d'écart"

#. module: account_cash_discount_write_off
#: code:addons/account_cash_discount_write_off/models/account_payment_line.py:0
#, python-format
msgid ""
"You have to fill in journal and account for cash discount write-off on the "
"company."
msgstr ""
"Vous devez remplir un journal et un compte d'écart pour les escomptes sur la "
"société."
3 changes: 3 additions & 0 deletions account_cash_discount_write_off/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import account_payment_line
from . import account_payment_order
from . import res_company
Loading
Loading