-
-
Notifications
You must be signed in to change notification settings - Fork 20
[18.0][MIG] account_billing_from_cutoff: migration to 18.0 #110
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
Merged
OCA-git-bot
merged 5 commits into
OCA:18.0
from
qrtl:18.0-mig-account_billing_from_cutoff
Aug 13, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d9ee1ad
[ADD] account_billing_from_cutoff
AungKoKoLin1997 623cde4
[IMP] account_billing_from_cutoff: pre-commit auto fixes
AungKoKoLin1997 14353a9
[MIG] account_billing_from_cutoff: migration to 18.0
AungKoKoLin1997 90ba8bf
[FIX] account_billing_from_cutoff: set threshold date from cutoff and…
AungKoKoLin1997 ac94731
[IMP] account_billing_from_cutoff: sort billing lines and require bil…
AungKoKoLin1997 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| =========================== | ||
| Account Billing From Cutoff | ||
| =========================== | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:3bd2ac035fb32366e6528bd429c87079ed4698590167692e1f9a8ed091e726f6 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Alpha | ||
| .. |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%2Fl10n--japan-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/l10n-japan/tree/18.0/account_billing_from_cutoff | ||
| :alt: OCA/l10n-japan | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/l10n-japan-18-0/l10n-japan-18-0-account_billing_from_cutoff | ||
| :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/l10n-japan&target_branch=18.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| This module creates billings for partners with Summary Invoicing | ||
| enabled, based on the cutoff date of their invoices. | ||
|
|
||
| .. IMPORTANT:: | ||
| This is an alpha version, the data model and design can change at any time without warning. | ||
| Only for development or testing purpose, do not use in production. | ||
| `More details on development status <https://odoo-community.org/page/development-status>`_ | ||
|
|
||
| **Table of contents** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| To use this module, | ||
|
|
||
| - Go to *Invoicing -> Customers or Vendors -> Create Billing From | ||
| Cutoff* | ||
| - Set the cutoff date and click on *Create Billings* | ||
|
|
||
| The cutoff date you enter becomes the threshold date of the billing: | ||
|
|
||
| - A new billing is created with *Invoice Date* as its threshold date | ||
| type and the cutoff date as its threshold date. | ||
| - When the invoices are added to an existing draft billing, its | ||
| threshold date is moved forward to the cutoff date. A threshold date | ||
| that is already later is kept, so that it is never lowered. | ||
| - A draft billing whose threshold date type is *Due Date* is not | ||
| reused. As the cutoff date is derived from the invoice date, applying | ||
| it to such a billing would leave its threshold date earlier than the | ||
| due dates of its lines and prevent the billing from being validated. | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-japan/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/l10n-japan/issues/new?body=module:%20account_billing_from_cutoff%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 | ||
| ------- | ||
|
|
||
| * Quartile | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Quartile <https://www.quartile.co> | ||
|
|
||
| - Aung Ko Ko Lin | ||
| - Yoshi Tashiro | ||
|
|
||
| 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. | ||
|
|
||
| .. |maintainer-yostashiro| image:: https://github.com/yostashiro.png?size=40px | ||
| :target: https://github.com/yostashiro | ||
| :alt: yostashiro | ||
| .. |maintainer-aungkokolin1997| image:: https://github.com/aungkokolin1997.png?size=40px | ||
| :target: https://github.com/aungkokolin1997 | ||
| :alt: aungkokolin1997 | ||
|
|
||
| Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
|
||
| |maintainer-yostashiro| |maintainer-aungkokolin1997| | ||
|
|
||
| This module is part of the `OCA/l10n-japan <https://github.com/OCA/l10n-japan/tree/18.0/account_billing_from_cutoff>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import wizards |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Copyright 2025 Quartile (https://www.quartile.co) | ||
| # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
|
||
| { | ||
| "name": "Account Billing From Cutoff", | ||
| "summary": "Create billings based on invoice cutoff dates", | ||
| "version": "18.0.1.0.0", | ||
| "depends": [ | ||
| "account_billing", | ||
| "account_payment_term_cutoff_day", | ||
| "l10n_jp_summary_invoice", | ||
| ], | ||
| "author": "Quartile, Odoo Community Association (OCA)", | ||
| "license": "AGPL-3", | ||
| "website": "https://github.com/OCA/l10n-japan", | ||
| "category": "Accounting", | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "wizards/account_billing_cutoff.xml", | ||
| ], | ||
| "development_status": "Alpha", | ||
| "maintainers": ["yostashiro", "aungkokolin1997"], | ||
| "installable": True, | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [build-system] | ||
| requires = ["whool"] | ||
| build-backend = "whool.buildapi" |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| - Quartile \<<https://www.quartile.co>\> | ||
| - Aung Ko Ko Lin | ||
| - Yoshi Tashiro | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| This module creates billings for partners with Summary Invoicing | ||
| enabled, based on the cutoff date of their invoices. |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| To use this module, | ||
|
|
||
| - Go to *Invoicing -\> Customers or Vendors -\> Create Billing From | ||
| Cutoff* | ||
| - Set the cutoff date and click on *Create Billings* | ||
|
|
||
| The cutoff date you enter becomes the threshold date of the billing: | ||
|
|
||
| - A new billing is created with *Invoice Date* as its threshold date | ||
| type and the cutoff date as its threshold date. | ||
| - When the invoices are added to an existing draft billing, its | ||
| threshold date is moved forward to the cutoff date. A threshold date | ||
| that is already later is kept, so that it is never lowered. | ||
| - A draft billing whose threshold date type is *Due Date* is not reused. | ||
| As the cutoff date is derived from the invoice date, applying it to | ||
| such a billing would leave its threshold date earlier than the due | ||
| dates of its lines and prevent the billing from being validated. |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
| access_wiz_account_billing_cutoff,access_wiz_account_billing_cutoff,model_wiz_account_billing_cutoff,account.group_account_invoice,1,1,1,1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.