Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
114 changes: 114 additions & 0 deletions account_billing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============
Billing Process
===============

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

.. |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/license-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/19.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-19-0/account-invoicing-19-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=19.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.

**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:%2019.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. <kittiu@ecosoft.co.th>
- Saran Lim. <saranl@ecosoft.co.th>
- Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
- Komsan Somwong <komsan.s@ecosoft.co.th>

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/19.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": "19.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",
"security/account_billing_security.xml",
"views/account_billing_views.xml",
"views/account_move_views.xml",
"report/report_billing.xml",
"report/report.xml",
],
"installable": True,
"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="group_ids" 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