forked from OCA/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#141 from jcoux/migrate_account_payment_term_ex…
…tension Migration V9 account_payment_term_extension
- Loading branch information
Showing
10 changed files
with
842 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,70 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
============================== | ||
Account Payment Term Extension | ||
============================== | ||
|
||
This module was written to extend the functionality of payment terms to support rounding, months and weeks on payment term lines. | ||
This module extends the functionality of payment terms to : | ||
|
||
By default in Odoo, if you have a payment term of *30 days end of months* and you invoice on January 30, you will have a due date on March 31st. With this module, if you configure the payment term line with months = 1, days = 0 and days2 = -1, you will have a due date on February 28th. | ||
* support rounding, months and weeks on payment term lines | ||
* allow to set more than one day of payment in payment terms | ||
* 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 | ||
|
||
Configuration | ||
============= | ||
|
||
To configure the Payment Terms and see the new options on the Payment Term Lines, go to the menu Accounting > Configuration > Miscellaneous > Payment Terms. | ||
To configure the Payment Terms and see the new options on the Payment Term Lines, you need to: | ||
|
||
#. Go to the menu Accounting > Configuration > Management > Payment Terms. | ||
|
||
To use multiple payment days, define for each payment term line which payment days apply, separated by spaces, commas or dashes. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/account-invoicing/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed `feedback | ||
<https://github.com/OCA/ | ||
account-invoicing/issues/new?body=module:%20 | ||
account_payment_term_extension%0Aversion:%20 | ||
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
* https://openclipart.org/detail/198659/mono-template-invoice | ||
* https://openclipart.org/detail/5571/calendar-icon-large | ||
|
||
Contributors | ||
------------ | ||
|
||
* Yannick Vaucher <[email protected]> | ||
* Alexis de Lattre <[email protected]> | ||
* Julien Coux <[email protected]> | ||
* Pedro M. Baeza <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: http://odoo-community.org/logo.png | ||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: http://odoo-community.org | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
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. | ||
|
||
To contribute to this module, please visit http://odoo-community.org. | ||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<openerp> | ||
<data noupdate="1"> | ||
<data noupdate="1"> | ||
|
||
<record id="account.account_payment_term_line" model="account.payment.term.line"> | ||
<field name="days" eval="0"/> | ||
<field name="months" eval="1"/> | ||
</record> | ||
<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">True</field> | ||
<field name="line_ids" | ||
eval="[(0,0, {'months': 2, 'option': 'day_after_invoice_date', 'sequence': 20, 'value': 'fixed', 'value_amount': 0}), | ||
(0,0, {'days': 0, 'option': 'last_day_current_month', 'sequence': 30, 'value': 'balance', 'value_amount': 0}) | ||
]" /> | ||
</record> | ||
|
||
<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> | ||
</record> | ||
|
||
<record id="sixty_days_end_of_month_line" model="account.payment.term.line"> | ||
<field name="payment_id" ref="sixty_days_end_of_month"/> | ||
<field name="value">balance</field> | ||
<field name="months" eval="2"/> | ||
<field name="days" eval="0"/> | ||
<field name="days2" eval="-1"/> | ||
</record> | ||
|
||
</data> | ||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.