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

[18.0] [MIG] account_payment_term_extension: Migration to 18.0 #776

Open
wants to merge 56 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
84833dd
Port module payment_term_rounding to v8 and rename to account_payment…
Mar 2, 2015
f5e8879
Migration V9 account_payment_term_extension
jcoux Mar 22, 2016
412631c
[IMP] account_payment_term_extension: Switch company
pedrobaeza Apr 27, 2016
2234d25
Port account_payment_term_extension to v10
alexis-via Oct 11, 2016
2868154
[UPD] Module account_payment_term_extension, added holidays management
SimoRubi Feb 14, 2018
ec20034
[MIG] account_payment_term_extension: Migration to 11.0
cubells Apr 16, 2018
42100f2
[MIG] account_payment_term_extension: Migration to 12.0
cubells Mar 13, 2019
79041b7
[FIX] account_payment_term_extension: Add payment_days to view
pedrobaeza May 19, 2019
2f11ec5
Translated using Weblate (Spanish)
josepmy Jul 22, 2019
81d9111
Translated using Weblate (Portuguese (Brazil))
Sep 23, 2019
c6fb876
12.0 [FIX] the sequential line was not visible
MarcoCalcagni Oct 20, 2019
906a0e5
Translated using Weblate (French)
Martronic-SA Feb 12, 2020
8dbcabf
Translated using Weblate (French (Switzerland))
Martronic-SA Feb 12, 2020
b8665b1
Translated using Weblate (Croatian)
badbole Mar 5, 2020
57551c3
[IMP] account_payment_term_extension: black, isort, prettier
carlos-domatix May 19, 2020
f0c1514
[MIG] account_payment_term_extension: Migration to 13.0
carlos-domatix May 19, 2020
158d679
[FIX] account_payment_term_extension: bad use of precision_rounding v…
alexis-via Jun 7, 2020
edf2984
Translated using Weblate (Spanish (Argentina))
ibuioli Jul 13, 2020
19c0ccd
[IMP] account_payment_term_extension: Add amount_untaxed to value opt…
victoralmau Jan 7, 2021
940c3ea
[REF+IMP] account_payment_term_extension: Short tests code + tests mo…
joao-p-marques Jan 8, 2021
fd122b6
[IMP] account_payment_term_extension: black, isort, prettier
pedrobaeza Jan 11, 2021
dc42dcd
[MIG+IMP] account_payment_term_extension: Migration to 14.0
pedrobaeza Jan 11, 2021
a136885
[FIX] account_payment_term_extension missing standard option into ELI…
acsonefho Nov 9, 2020
7a433bd
[ADD][14.0] account_payment_term_discount
Hardik-SCS Feb 4, 2021
a2f1bcf
[14.0] [account_payment_term_extension] [FIX] error computing months …
andreampiovesana Mar 29, 2021
19f54ba
reformat
andreampiovesana Mar 29, 2021
102a098
test months
andreampiovesana Mar 29, 2021
0432eb6
black
andreampiovesana Mar 31, 2021
d3d3bac
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
d4553a5
Translated using Weblate (French (France))
Yvesldff Apr 10, 2021
c035c37
Translated using Weblate (Spanish (Argentina))
ibuioli Apr 14, 2021
0e70867
Translated using Weblate (Dutch)
bosd Apr 23, 2021
541efd2
Translated using Weblate (Italian)
alessandro-fiorino Sep 26, 2021
c0cca52
Translated using Weblate (Italian)
francesco-ooops Nov 29, 2021
1921a41
[MIG]account_payment_term_extension: Migration to 15.0
manuelregidor Feb 11, 2022
9271e21
Translated using Weblate (Catalan)
jabelchi Jul 26, 2022
9116b4e
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 12, 2022
da1c404
[16.0][MIG] account_payment_term_extension: Migration to 16.0
anothingguy Mar 9, 2023
b95163b
Translated using Weblate (Italian)
mymage Mar 23, 2023
1757385
Translated using Weblate (Slovenian)
sysadminmatmoz Apr 11, 2023
e033777
Translated using Weblate (Spanish)
Gelo-fl Apr 12, 2023
8e8c0e5
Translated using Weblate (Italian)
mymage Apr 17, 2023
9001447
Translated using Weblate (Italian)
mymage Jun 8, 2023
6485472
Translated using Weblate (Italian)
francesco-ooops Sep 20, 2023
e51e458
[IMP] account_payment_term_extension: test performance improvement
josep-tecnativa Oct 16, 2023
b98c7f1
Translated using Weblate (Swedish)
jakobkrabbe Feb 21, 2024
44d420a
Translated using Weblate (Italian)
mymage Feb 21, 2024
e558970
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
83b6674
[IMP] account_payment_term_extension: pre-commit auto fixes
RicardCForgeFlow Mar 14, 2024
3a9190c
[MIG] account_payment_term_extension: Migration to 17.0
RicardCForgeFlow Mar 15, 2024
bda55f6
[FIX] account_payment_term_extension: Line too long
pedrobaeza May 1, 2024
dbfae3d
Added translation using Weblate (Spanish (formal))
ramiadavid Jun 5, 2024
569d660
[FIX] account_payment_term_extension: Add cash_rounding parameter to …
victoralmau Aug 30, 2024
f08d2e0
Translated using Weblate (Italian)
mymage Sep 6, 2024
28ac059
[IMP] account_payment_term_extension: pre-commit auto fixes
Borruso Dec 6, 2024
a851d6e
[MIG] account_payment_term_extension: Migration to 18.0
Borruso Dec 6, 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
161 changes: 161 additions & 0 deletions account_payment_term_extension/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
======================
Payment Term Extension
======================

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

.. |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/18.0/account_payment_term_extension
: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-18-0/account-payment-18-0-account_payment_term_extension
: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=18.0
:alt: Try me on Runboat

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

This module extends the functionality of payment terms to:

- select "Percent (untaxed amount)" type in lines for using the base
amount instead of the total (with taxes) one.
- support rounding, months and weeks on payment term lines
- allow to set more than one day of payment in payment terms
- if a payment term date is a holiday, it is postponed to a selected
date
- allow to apply a chronological order on lines

- for example, with a payment term which contains 2 lines

- on standard, the due date of all lines is calculated from the
invoice date
- with this feature, the due date of the second line is
calculated from the due date of the first line

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure the Payment Terms and see the new options on the Payment
Term Lines, you need to:

1. Go to the menu Invoicing > Configuration > Invoicing > Payment Terms.

To use multiple payment days, define for each payment term line which
payment days apply, separated by spaces, commas or dashes. To use
holidays, insert the holiday and the date payment terms will be
postponed to.

To modify the type of delay options available in the payment terms, you
need to:

1. Go to the menu Invoicing > Configuration > Settings > Payment Terms.
2. Choose an option from:

- Days
- Days and Weeks
- Days and Months
- Days, Weeks and Months

Usage
=====

Go to **Invoicing > Customers > Invoices** and edit any invoice or
create a new one.

Select any payment term and set a date in invoice.

You must see the due date based on this payment term.

Known issues / Roadmap
======================

This module is not compatible with cash rounding

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_payment_term_extension%0Aversion:%2018.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
-------

* Camptocamp
* Tecnativa
* Agile Business Group

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

- Yannick Vaucher <[email protected]>
- Alexis de Lattre <[email protected]>
- Julien Coux <[email protected]>
- Simone Rubino <[email protected]>
(`www.agilebg.com <http://www.agilebg.com>`__)
- \`Tecnativa <https://www.tecnativa.com>\`:

- Pedro M. Baeza
- Vicent Cubells
- Víctor Martínez

- \`Domatix <https://domatix.com>\`:

- Carlos Martínez

- \`Sygel <https://sygel.es>\`:

- Manuel Regidor

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

- Hoang <[email protected]>

- Anaïs López <[email protected]>

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/account-payment <https://github.com/OCA/account-payment/tree/18.0/account_payment_term_extension>`_ 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_payment_term_extension/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
27 changes: 27 additions & 0 deletions account_payment_term_extension/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2013-2016 Camptocamp SA (Yannick Vaucher)
# Copyright 2015-2020 Akretion - Alexis de Lattre <[email protected]>
# Copyright 2016-2021 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Payment Term Extension",
"version": "18.0.1.0.0",
"category": "Accounting & Finance",
"summary": "Adds rounding, months, weeks and multiple payment days "
"properties on payment term lines",
"author": "Camptocamp,"
"Tecnativa,"
"Agile Business Group, "
"Odoo Community Association (OCA)",
"maintainer": "OCA",
"website": "https://github.com/OCA/account-payment",
"license": "AGPL-3",
"depends": ["account", "purchase"],
"data": [
"security/ir.model.access.csv",
"views/account_payment_term.xml",
"views/res_config_settings_view.xml",
],
"demo": ["demo/account_demo.xml"],
"installable": True,
}
27 changes: 27 additions & 0 deletions account_payment_term_extension/demo/account_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="sixty_days_end_of_month" model="account.payment.term">
<field name="name">60 Days End of Month</field>
<field name="note">60 Days End of Month</field>
<field name="sequential_lines" eval="True" />
<field
name="line_ids"
eval="[
(5, 0),
(0, 0, {'delay_type':'days_after_end_of_month', 'nb_days': 60, 'value': 'fixed', 'value_amount': 0}),
(0, 0, {'delay_type':'days_after_end_of_month', 'nb_days': 60, 'value': 'percent', 'value_amount': 100})]"
/>
</record>
<record id="amount_untaxed_lines" model="account.payment.term">
<field name="name">10% + 40% + Balance</field>
<field name="sequential_lines" eval="True" />
<field
name="line_ids"
eval="[
(5, 0),
(0, 0, {'value': 'percent_amount_untaxed', 'value_amount': 10}),
(0, 0, {'value': 'percent_amount_untaxed', 'nb_days': 1, 'value_amount': 40}),
(0, 0, {'value': 'percent', 'nb_days': 1, 'value_amount': 100})]"
/>
</record>
</odoo>
Binary file not shown.
Loading
Loading