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

[15.0] [MIG] account_cash_discount_write_off: Migration to 15.0 #762

Open
wants to merge 22 commits into
base: 15.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f48da4f
[ADD] Module which create a writeoff when paying an invoice (with a d…
benwillig Mar 9, 2018
a7e7fa2
[FIX] Update file's headers (copyright, encoding)
benwillig Mar 29, 2018
c5f07b8
[CHG] Don't allow to pay with discount if the payment line is not lin…
benwillig Mar 29, 2018
7d6bced
[CHG] Create the tax adjustment based on move lines instead of invoic…
benwillig Mar 29, 2018
7923354
[FIX] Round the tax amount to avoid unbalanced entries
benwillig Aug 22, 2018
0efe7ab
[10.0][IMP] account_cash_discount_base: Add precision to discounts
rousseldenis Oct 19, 2018
6e16506
[ADD] handle supplier refund when paying a supplier invoice which con…
benwillig Nov 28, 2018
f1cac41
[UPD] Update account_cash_discount_write_off.pot
oca-travis Feb 13, 2019
8db2262
[WIP] account_cash_discount_base/write_off/payment migration
benwillig Jun 8, 2020
669949f
[MIG] account_cash_discount_write_off to v13
benwillig Jun 10, 2020
864e182
[FIX] pre-commit
benwillig Jun 10, 2020
0eb667d
[FIX] updated /po files to prevent errors
benwillig Aug 17, 2020
92f7db7
[FIX] Fix pre-commit + generate README
acsonefho Nov 9, 2020
0d9048a
[IMP] account_cash_discount_write_off: black, isort, prettier
hkapatel-initos Sep 24, 2021
238f7d2
[MIG] account_cash_discount_write_off: Migration to 14.0
hkapatel-initos Sep 24, 2021
8a68cdc
Copy tax tags to new lines
fkantelberg Jan 14, 2022
a7b4d0e
Generate the discount before reconiliation
fkantelberg Jan 14, 2022
ed9d1f8
[UPD] Update account_cash_discount_write_off.pot
oca-travis Jan 21, 2022
93be82a
[UPD] README.rst
OCA-git-bot Jan 21, 2022
16370fa
[IMP] account_cash_discount_write_off: black, isort, prettier
bizzappdev Sep 20, 2024
3adc158
[MIG][15.0] account_cash_discount_write_off:Migration to 15.0
bizzappdev Sep 20, 2024
abfc706
[DON'T MERGE] test-requirements.txt
bizzappdev Sep 26, 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:3ae5bbdcc58337eb64bdf7024a5e2ab36e9e6f14bea534d1ee9fb55cc48dd2bd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/15.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-15-0/account-payment-15-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=15.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:%2015.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 <benjamin.willig@acsone.eu>
* Christelle De Coninck (ACSONE) <christelle.deconinck@acsone.eu>
* Helly kapatel <helly.kapatel@initos.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/account-payment <https://github.com/OCA/account-payment/tree/15.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": "15.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 ""
63 changes: 63 additions & 0 deletions account_cash_discount_write_off/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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"
"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:71
#, 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,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:67
#, 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