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 base: migration to v16.0 #706

Open
wants to merge 38 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5bf0137
[ADD] Add account cash discount module
adrienpeiffer Sep 1, 2015
125cdc0
[FIX][account_cash_discount_base] Some fixes
adrienpeiffer Dec 9, 2015
40dc0a2
[MIG] Migration to 10.0 + some improvements
benwillig Mar 6, 2018
8e66643
[ADD] Module which create a writeoff when paying an invoice (with a d…
benwillig Mar 9, 2018
d4ed250
[CHG] store the invoice's discount amount and the amount total with d…
benwillig Mar 29, 2018
7fb340d
[FIX] Update file's headers (copyright, encoding)
benwillig Mar 29, 2018
f1a8ff2
[CHG] Don't allow to pay with discount if the payment line is not lin…
benwillig Mar 29, 2018
77e6f02
[CHG] Create the tax adjustment based on move lines instead of invoic…
benwillig Mar 29, 2018
74705a1
[MIG] account_cash_discount_base migration script
sbidoul Jul 20, 2018
24dbcb0
[10.0][MIG] small improvement
Jul 23, 2018
9efea87
[MIG] account_cash_discount_base: better today
sbidoul Jul 25, 2018
20dc897
[FIX] Round the tax amount to avoid unbalanced entries
benwillig Aug 22, 2018
b81ca62
[FIX] prevent errors when adding payment lines manually
benwillig Sep 28, 2018
fd21f54
[10.0][IMP] account_cash_discount_base: Add precision to discounts
rousseldenis Oct 19, 2018
43fe645
[ADD] handle supplier refund when paying a supplier invoice which con…
benwillig Nov 28, 2018
b7b9538
[FIX] display the real discount amount on the payment line
benwillig Dec 7, 2018
953ada6
[FIX] Hide pay_with_discount field in the payment order line view
benwillig Dec 12, 2018
6b2aa0d
[UPD] Update account_cash_discount_base.pot
oca-travis Feb 13, 2019
548a352
[ADD] icon.png
OCA-git-bot Apr 3, 2019
8135fc9
[WIP] account_cash_discount_base/write_off/payment migration
benwillig Jun 8, 2020
de1212c
[MIG] account_cash_discount_base to v13
benwillig Jun 8, 2020
2faca05
[MIG] account_cash_discount_payment to v13
benwillig Jun 10, 2020
dde8dcb
[MIG] account_cash_discount_write_off to v13
benwillig Jun 10, 2020
5f51fb3
[FIX] pre-commit
benwillig Jun 10, 2020
5d596bd
[FIX] updated /po files to prevent errors
benwillig Aug 17, 2020
9a14220
[ADD] allow to handle discount on customer invoices + edit tree view …
benwillig Sep 30, 2020
d72c6f9
[FIX] Fix pre-commit + generate README
acsonefho Nov 9, 2020
75437bd
[IMP] account_cash_discount_base: isort, black, prettier.
dsolanki-initos Sep 24, 2021
fd73f90
[MIG] account_cash_discount_base to v14.
dsolanki-initos Sep 24, 2021
52db52c
[UPD] Update account_cash_discount_base.pot
oca-travis Oct 20, 2021
7e3ac85
[UPD] README.rst
OCA-git-bot Oct 20, 2021
1ad214b
Added translation using Weblate (Spanish)
olgamarcocb Feb 2, 2022
3c989ed
[UPD] README.rst
OCA-git-bot Sep 3, 2023
d8b3d9f
Update translation files
weblate Oct 9, 2023
29e6c70
Added translation using Weblate (Spanish)
Ivorra78 Dec 18, 2023
9b4e0fc
Translated using Weblate (Spanish)
Ivorra78 Dec 18, 2023
086775d
[IMP] account_invoice_check_total: black, isort, prettier
AnizR Jan 31, 2024
a44f6d8
[MIG][16.0] account_cash_discount_base: migration to 16.0
AnizR Feb 1, 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
106 changes: 106 additions & 0 deletions account_cash_discount_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
==========================
Account Cash Discount Base
==========================

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

.. |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_base
: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_base
: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|

This module was written to allow you to define cash discount (aka early payment discount)
on customer or supplier invoices.

On customer invoices, you can add a discount delay and
a discount percentage. At invoice validation, the discount due date is generated
from the delay. The amount with discount deducted is computed at the same time
as taxes. This module also adds cash discount informations on customer invoice
report.

On supplier invoices, you can set the discount percentage. For the discount due
date, you can fill it directly or set a delay. In this case, discount due date
is still computed at invoice's validation.

You can decide to calculate the discount amount based on the total price taxes
included or not.

**Table of contents**

.. contents::
:local:

Usage
=====

To configure the base amount type, you need to:

#. Go to your companies
#. Set the cash discount base amount type (including taxes or not)

You can also configure default discount percent and delay on the payment term.

To use this module you can defined all of informations written in the
description on customer and supplier invoices.

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

* Christelle De Coninck (ACSONE) <christelle.deconinck@acsone.eu>
* Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu>
* Adrien Peiffer (ACSONE) <adrien.peiffer@acsone.eu>
* Benjamin Willig (ACSONE) <benjamin.willig@acsone.eu>

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_base>`_ 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_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions account_cash_discount_base/__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 Base",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-payment",
"category": "Accounting",
"depends": ["account"],
"data": [
"views/account_move.xml",
"views/res_company.xml",
"reports/report_invoice.xml",
],
}
193 changes: 193 additions & 0 deletions account_cash_discount_base/i18n/account_cash_discount_base.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_cash_discount_base
#
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_base
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.report_invoice_document_inherit
msgid "% discount for payment before"
msgstr ""

#. module: account_cash_discount_base
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.res_company_form_view
msgid "Base Amount Type"
msgstr ""

#. module: account_cash_discount_base
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.account_move_form
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.res_company_form_view
msgid "Cash Discount"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_res_company__cash_discount_base_amount_type
msgid "Cash Discount Base Amount Type"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_res_company__cash_discount_use_tax_adjustment
msgid "Cash Discount Use Tax Adjustment"
msgstr ""

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

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_percent
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_percent
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_percent
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment_term__discount_percent
msgid "Discount (%)"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_amount
msgid "Discount Amount"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_base_date
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_base_date
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_base_date
msgid "Discount Base Date"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_delay
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_delay
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_delay
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment_term__discount_delay
msgid "Discount Delay (days)"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_due_date
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_due_date
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_due_date
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.account_move_form
msgid "Discount Due Date"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__discount_due_date_readonly
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__discount_due_date_readonly
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__discount_due_date_readonly
msgid "Discount Due Date Readonly"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__real_discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__real_discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__real_discount_amount
msgid "Discount amount (minus related refunds amount)"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__display_name
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment_term__display_name
#: model:ir.model.fields,field_description:account_cash_discount_base.field_res_company__display_name
msgid "Display Name"
msgstr ""

#. module: account_cash_discount_base
#: code:addons/account_cash_discount_base/models/res_company.py:0
#, python-format
msgid "Excluding tax"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__has_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__has_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__has_discount
msgid "Has Discount"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__id
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment_term__id
#: model:ir.model.fields,field_description:account_cash_discount_base.field_res_company__id
msgid "ID"
msgstr ""

#. module: account_cash_discount_base
#: code:addons/account_cash_discount_base/models/res_company.py:0
#, python-format
msgid "Including all taxes"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__is_cash_discount_allowed
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__is_cash_discount_allowed
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__is_cash_discount_allowed
msgid "Is Cash Discount Allowed"
msgstr ""

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

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move____last_update
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment_term____last_update
#: model:ir.model.fields,field_description:account_cash_discount_base.field_res_company____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model,name:account_cash_discount_base.model_account_payment_term
msgid "Payment Terms"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__refunds_discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__refunds_discount_amount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__refunds_discount_amount
msgid "Refunds Discount Amount"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__residual_with_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__residual_with_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__residual_with_discount
msgid "Residual With Discount"
msgstr ""

#. module: account_cash_discount_base
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.account_move_tree_view
msgid "Total"
msgstr ""

#. module: account_cash_discount_base
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_bank_statement_line__amount_total_with_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_move__amount_total_with_discount
#: model:ir.model.fields,field_description:account_cash_discount_base.field_account_payment__amount_total_with_discount
msgid "Total (with discount)"
msgstr ""

#. module: account_cash_discount_base
#: model_terms:ir.ui.view,arch_db:account_cash_discount_base.report_invoice_document_inherit
msgid "Total With a"
msgstr ""

#. module: account_cash_discount_base
#: code:addons/account_cash_discount_base/models/account_move.py:0
#, python-format
msgid ""
"You can't set a discount amount if there is no discount due date. (Move ID: "
"%s)"
msgstr ""
Loading
Loading