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_billing: Migration to 18.0 #1879

Open
wants to merge 43 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
43 commits
Select commit Hold shift + click to select a range
acccce9
[12.0][ADD] account_billing
Saran440 May 8, 2019
77d2588
[UPD] Update account_billing.pot
oca-travis Mar 24, 2020
2d2494a
[UPD] README.rst
OCA-git-bot Mar 24, 2020
77d1d34
[ADD] icon.png
OCA-git-bot Mar 24, 2020
718130c
[IMP] account_billing: black, isort
kongrattapong Mar 25, 2020
4b3dd95
[MIG] account_billing: Migration to 13.0
kongrattapong Apr 9, 2020
1d007c6
[IMP] : black, isort, prettier
komsan-S Nov 11, 2020
4ea7b0a
[MIG] account_billing: Migration to 14.0
komsan-S Nov 11, 2020
e528542
[UPD] Update account_billing.pot
oca-travis Mar 4, 2021
571bbca
[UPD] README.rst
OCA-git-bot Mar 4, 2021
5566173
Added translation using Weblate (Spanish)
anasuarez1 Mar 10, 2021
226ad20
Added translation using Weblate (French (France))
Yvesldff Apr 10, 2021
4ca9df4
[14.0][fix][account_billing] fixes failing tests
JordiBForgeFlow Apr 6, 2021
b2ef5ff
account_billing 14.0.1.0.1
OCA-git-bot Apr 11, 2021
8c807df
[FIX] account_billing: Fix tests
joao-p-marques Apr 15, 2021
d85f049
[UPD] README.rst
OCA-git-bot Nov 11, 2021
142dcb7
[UPD] README.rst
OCA-git-bot Nov 11, 2021
ceec818
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Jan 7, 2022
711d8b2
Translated using Weblate (Chinese (Simplified))
liweijie0812 Jan 7, 2022
65e6606
[FIX][BUG] Get the current company should be made with self.env.compa…
mbcosta Feb 16, 2022
40aac46
account_billing 14.0.1.0.2
OCA-git-bot Feb 16, 2022
1c4a5f2
[IMP] update dotfiles
OCA-git-bot Mar 30, 2022
666aa42
[FIX] account_billing: minor fixes
MiquelRForgeFlow Apr 5, 2022
9cf6ff7
[UPD] Update account_billing.pot
oca-travis Apr 5, 2022
0c10443
account_billing 14.0.1.0.3
OCA-git-bot Apr 5, 2022
7ce0802
Update translation files
oca-transbot Apr 6, 2022
d568d1d
Added translation using Weblate (Dutch (nl_NL))
bosd May 3, 2023
db2f98e
Translated using Weblate (Dutch (nl_NL))
bosd May 3, 2023
e166a52
[UPD] README.rst
OCA-git-bot Sep 3, 2023
10de720
Update translation files
weblate Oct 9, 2023
d1a3d7b
[UPD] Update account_billing.pot
Oct 27, 2023
2315660
Update translation files
weblate Oct 29, 2023
03df5c9
Translated using Weblate (Spanish)
Ivorra78 Nov 30, 2023
3bee730
[MIG][15.0]account_billing:Migration to 15.0
bizzappdev Mar 24, 2023
c41472c
[IMP] account_billing: pre-commit stuff
Saran440 Jan 11, 2024
39f8fcd
[MIG] account_billing: Migration to 16.0
Saran440 Jan 12, 2024
0e6e2bf
[ENH] add feature register payment in billing
Saran440 Jan 15, 2024
4e2cd8c
[ENH] account_billing: click button to get value instead of onchange
Saran440 Mar 29, 2024
8d192a1
[FIX] change type text to html field
Saran440 May 16, 2024
bb1c663
[IMP] account_billing: pre-commit auto fixes
antonioburic Jul 14, 2024
9c59a6c
[MIG] account_billing: Migration to 17.0
antonioburic Jul 14, 2024
18442cf
[IMP] account_billing: pre-commit auto fixes
kevinkhao Jan 14, 2025
dc9b777
[MIG] account_billing: Migration to 18.0
kevinkhao Jan 14, 2025
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
116 changes: 116 additions & 0 deletions account_billing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
===============
Billing Process
===============

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

.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/18.0/account_billing
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-account_billing
: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-invoicing&target_branch=18.0
:alt: Try me on Runboat

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

In some countries, there is a customary practice for companies to
collect money from their customers only once in a month. For example,
the customer has 3 payments due in a given month, the vendor or billing
company should group all the due AR Invoices in a document call Billing
Document and issue it with all the invoices consolidated to the customer
on the Billing Day. The customer will be paying based on the payable
amount shown in Billing Document in the following month.

This module use a new document called "Billing" to group these invoices
together.

.. 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, you have 2 ways:

1. | Create new billing directly
| Go to *Invoicing -> Customers or Vendors -> Billing*

2. Create billing from selected invoice(s)

1. Go to *Invoicing -> Customers or Vendors -> Invoices or Bills*
2. Create Invoice
3. On tree view select invoice and go to *Action -> Create Billing*

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_billing%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
-------

* Ecosoft

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

- Kitti U. <[email protected]>
- Saran Lim. <[email protected]>
- Rattapong Chokmasermkul <[email protected]>
- Komsan Somwong <[email protected]>
- Kevin Khao <[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.

.. |maintainer-Saran440| image:: https://github.com/Saran440.png?size=40px
:target: https://github.com/Saran440
:alt: Saran440

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Saran440|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/18.0/account_billing>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_billing/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2019 Ecosoft Co., Ltd (https://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import models
25 changes: 25 additions & 0 deletions account_billing/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2019 Ecosoft Co., Ltd (https://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

{
"name": "Billing Process",
"summary": "Group invoice as billing before payment",
"version": "18.0.1.0.0",
"author": "Ecosoft, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-invoicing",
"category": "Account",
"depends": ["account"],
"data": [
"data/account_billing_sequence.xml",
"data/server_action.xml",
"security/ir.model.access.csv",
"views/account_billing_views.xml",
"views/account_move_views.xml",
"report/report_billing.xml",
"report/report.xml",
],
"installable": True,
"development_status": "Alpha",
"maintainers": ["Saran440"],
}
22 changes: 22 additions & 0 deletions account_billing/data/account_billing_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<odoo noupdate="1">
<record id="seq_account_customer_billing" model="ir.sequence">
<field name="name">Billing sequence</field>
<field name="code">account.customer.billing</field>
<field name="prefix">CUST.BIL/%(year)s/</field>
<field eval="1" name="number_next" />
<field eval="1" name="number_increment" />
<field eval="True" name="use_date_range" />
<field eval="False" name="company_id" />
<field name="padding">5</field>
</record>
<record id="seq_account_supplier_billing" model="ir.sequence">
<field name="name">Supplier Billing sequence</field>
<field name="code">account.supplier.billing</field>
<field name="prefix">SUPP.BIL/%(year)s/</field>
<field eval="1" name="number_next" />
<field eval="1" name="number_increment" />
<field eval="True" name="use_date_range" />
<field eval="False" name="company_id" />
<field name="padding">5</field>
</record>
</odoo>
28 changes: 28 additions & 0 deletions account_billing/data/server_action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<odoo>
<!-- Moves -->
<record id="action_account_invoice_billing" model="ir.actions.server">
<field name="name">Create Billing</field>
<field name="model_id" ref="account.model_account_move" />
<field name="binding_model_id" ref="account.model_account_move" />
<field name="binding_view_types">list</field>
<field name="state">code</field>
<field name="code">
if records:
action = records.action_create_billing()
</field>
</record>

<!-- Billing -->
<record id="action_account_billing_from_list" model="ir.actions.server">
<field name="name">Register Payment</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]" />
<field name="model_id" ref="account_billing.model_account_billing" />
<field name="binding_model_id" ref="account_billing.model_account_billing" />
<field name="binding_view_types">list</field>
<field name="state">code</field>
<field name="code">
if records:
action = records.action_register_payment()
</field>
</record>
</odoo>
Loading
Loading