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_payment: Migration to 15.0 #761

Open
wants to merge 33 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
33 commits
Select commit Hold shift + click to select a range
a809d33
[MIG] Migration to 10.0 + some improvements
benwillig Mar 6, 2018
3e2a216
[ADD] Module which create a writeoff when paying an invoice (with a d…
benwillig Mar 9, 2018
ce90a77
[FIX] Update file's headers (copyright, encoding)
benwillig Mar 29, 2018
7efc7c2
[CHG] Don't allow to pay with discount if the payment line is not lin…
benwillig Mar 29, 2018
53e3552
[CHG] Create the tax adjustment based on move lines instead of invoic…
benwillig Mar 29, 2018
581d24b
[FIX] prevent errors when adding payment lines manually
benwillig Sep 28, 2018
b94e7e9
[ADD] handle supplier refund when paying a supplier invoice which con…
benwillig Nov 28, 2018
f9b114a
[FIX] hide discount information if the linked invoice has no discount
benwillig Dec 7, 2018
e318bd7
[FIX] display the real discount amount on the payment line
benwillig Dec 7, 2018
b3966d4
[FIX] Hide pay_with_discount field in the payment order line view
benwillig Dec 12, 2018
f67dfab
[UPD] Update account_cash_discount_payment.pot
oca-travis Feb 13, 2019
a21a946
[ADD] icon.png
OCA-git-bot Apr 3, 2019
fba798e
[WIP] account_cash_discount_base/write_off/payment migration
benwillig Jun 8, 2020
55ba37b
[MIG] account_cash_discount_payment to v13
benwillig Jun 10, 2020
041dc7c
[MIG] account_cash_discount_write_off to v13
benwillig Jun 10, 2020
bd793c9
[FIX] pre-commit
benwillig Jun 10, 2020
eb05b24
[FIX] updated /po files to prevent errors
benwillig Aug 17, 2020
9c152c0
[FIX] Fix pre-commit + generate README
acsonefho Nov 9, 2020
76d45c1
[IMP] account_cash_discount_payment: isort, black, prettier.
fshah-initos Sep 24, 2021
6555960
[MIG] Migrate module account_cash_discount_payment to v14.
fshah-initos Sep 24, 2021
95cf372
[UPD] Update account_cash_discount_payment.pot
oca-travis Oct 31, 2021
11a55ea
[UPD] README.rst
OCA-git-bot Oct 31, 2021
092a7f8
[14.0][FIX] account_cash_discount_payment
fshah-initos Dec 9, 2021
06fcdfa
account_cash_discount_payment 14.0.1.0.1
OCA-git-bot Jan 7, 2022
4980c32
[FIX] account_cash_discount_payment: Depends changed.
geomer198 Mar 5, 2023
85e2d3e
account_cash_discount_payment 14.0.1.0.2
OCA-git-bot Apr 6, 2023
5b3a2c6
[UPD] README.rst
OCA-git-bot Sep 3, 2023
cc96dc6
Update translation files
weblate Oct 9, 2023
7352480
Added translation using Weblate (Spanish)
Ivorra78 Dec 17, 2023
b0e3834
Translated using Weblate (Spanish)
Ivorra78 Dec 17, 2023
7a820be
[IMP] account_cash_discount_payment: black, isort, prettier
bizzappdev Sep 30, 2024
6fe6584
[MIG][15.0] account_cash_discount_payment: Migration to 15.0
bizzappdev Sep 30, 2024
9372b88
[DON'T MERGE] test-requirements.txt
bizzappdev Sep 30, 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
86 changes: 86 additions & 0 deletions account_cash_discount_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
=============================
Account Cash Discount Payment
=============================

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

.. |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/14.0/account_cash_discount_payment
: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-14-0/account-payment-14-0-account_cash_discount_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/account-payment&target_branch=14.0
:alt: Try me on Runboat

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

Extends Account Cash Discount Base and Payment Order modules to let you
add invoices on payment order considering the cash discount on it.
When an invoice with cash discount is added to a payment order,
the amount proposed on payment line will be the residual amount discount deducted,
provided that the due date has not expired.

This module also offers to search by discount due date to add invoices on
payment order and add discount amount on payment line.

**Table of contents**

.. contents::
:local:

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_payment%0Aversion:%2014.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
~~~~~~~~~~~~

* Christelle De Coninck (ACSONE) <[email protected]>
* Stéphane Bidoul (ACSONE) <[email protected]>
* Adrien Peiffer (ACSONE) <[email protected]>
* Benjamin Willig (ACSONE) <[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/14.0/account_cash_discount_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 account_cash_discount_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
17 changes: 17 additions & 0 deletions account_cash_discount_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2018 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Cash Discount Payment",
"version": "15.0.1.0.0",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-payment",
"license": "AGPL-3",
"category": "Accounting",
"depends": ["account_cash_discount_base", "account_payment_order_grouped_output"],
"data": [
"views/account_move_line.xml",
"views/account_payment_line.xml",
"wizards/account_payment_line_create.xml",
],
}
153 changes: 153 additions & 0 deletions account_cash_discount_payment/i18n/account_cash_discount_payment.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_cash_discount_payment
#
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_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line_create__cash_discount_date
msgid "Cash Discount Date"
msgstr ""

#. module: account_cash_discount_payment
#: model_terms:ir.ui.view,arch_db:account_cash_discount_payment.account_payment_line_tree_view
msgid "Disable discount"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move_line__discount_amount
msgid "Discount Amount"
msgstr ""

#. module: account_cash_discount_payment
#: code:addons/account_cash_discount_payment/wizards/account_payment_line_create.py:0
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move_line__discount_due_date
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__discount_due_date
#: model:ir.model.fields.selection,name:account_cash_discount_payment.selection__account_payment_line_create__date_type__discount_due_date
#, python-format
msgid "Discount Due Date"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__discount_amount
msgid "Discount amount (minus related refunds amount)"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move__display_name
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move_line__display_name
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__display_name
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line_create__display_name
msgid "Display Name"
msgstr ""

#. module: account_cash_discount_payment
#: model_terms:ir.ui.view,arch_db:account_cash_discount_payment.account_payment_line_tree_view
msgid "Enable discount"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move__id
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move_line__id
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__id
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line_create__id
msgid "ID"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model,name:account_cash_discount_payment.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model,name:account_cash_discount_payment.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move____last_update
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_move_line____last_update
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line____last_update
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line_create____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__pay_with_discount
msgid "Pay With Discount"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__pay_with_discount_allowed
msgid "Pay With Discount Allowed"
msgstr ""

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

#. module: account_cash_discount_payment
#: model:ir.model.fields,help:account_cash_discount_payment.field_account_payment_line_create__cash_discount_date
msgid ""
"Search lines with a discount due date which is posterior to the selected "
"date."
msgstr ""

#. module: account_cash_discount_payment
#: model_terms:ir.ui.view,arch_db:account_cash_discount_payment.account_payment_line_tree_view
msgid "Toggle Discount"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line__toggle_pay_with_discount_allowed
msgid "Toggle Pay With Discount Allowed"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model.fields,field_description:account_cash_discount_payment.field_account_payment_line_create__date_type
msgid "Type of Date Filter"
msgstr ""

#. module: account_cash_discount_payment
#: code:addons/account_cash_discount_payment/models/account_payment_line.py:0
#, python-format
msgid "Warning!"
msgstr ""

#. module: account_cash_discount_payment
#: model:ir.model,name:account_cash_discount_payment.model_account_payment_line_create
msgid "Wizard to create payment lines"
msgstr ""

#. module: account_cash_discount_payment
#: code:addons/account_cash_discount_payment/models/account_payment_line.py:0
#, python-format
msgid ""
"You can change the pay with discount value only if there is a linked invoice"
" with a discount and if the payment order is not done. (Payment Order: %s)"
msgstr ""

#. module: account_cash_discount_payment
#: code:addons/account_cash_discount_payment/models/account_payment_line.py:0
#, python-format
msgid ""
"You can't pay with a discount if the payment line is not linked to an "
"invoice which has a discount."
msgstr ""

#. module: account_cash_discount_payment
#: code:addons/account_cash_discount_payment/models/account_payment_line.py:0
#, python-format
msgid ""
"You can't pay with a discount if you don't pay all the invoice at once."
msgstr ""
Loading
Loading