Skip to content

Commit

Permalink
Merge f179004 into 322ea72
Browse files Browse the repository at this point in the history
  • Loading branch information
Saran440 committed Nov 5, 2019
2 parents 322ea72 + f179004 commit 06086d8
Show file tree
Hide file tree
Showing 20 changed files with 1,335 additions and 0 deletions.
99 changes: 99 additions & 0 deletions account_billing/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
===============
Billing Process
===============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| 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
.. |badge2| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/12.0-add-account_billing/account_billing
:alt: OCA/account-invoicing
.. |badge3| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-12-0-add-account_billing/account-invoicing-12-0-add-account_billing-account_billing
:alt: Translate me on Weblate
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/12.0-add-account_billing
:alt: Try me on Runbot

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

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)
#. Go to *Invoicing -> Customers or Vendors -> Invoices or Bills*
#. Create Invoice
#. 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_billing%0Aversion:%2012.0-add-account_billing%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>

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/12.0-add-account_billing/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': '12.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/account_invoice.xml',
'security/ir.model.access.csv',
'views/account_billing.xml',
'views/account_invoice_view.xml',
'report/report_billing.xml',
'report/report.xml',
],
'installable': True,
'development_status': 'alpha',
'maintainers': ['Saran440'],
}
23 changes: 23 additions & 0 deletions account_billing/data/account_billing_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<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>
11 changes: 11 additions & 0 deletions account_billing/data/account_invoice.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<odoo>
<act_window id="action_account_invoice_billing"
multi="True"
key2="client_action_multi"
name="Create Billing"
res_model="account.billing"
src_model="account.invoice"
view_mode="form"
target="current"
context="{'bill_type': context.get('type', False)}"/>
</odoo>
5 changes: 5 additions & 0 deletions account_billing/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2019 Ecosoft Co., Ltd (https://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import account_billing
from . import account_invoice

0 comments on commit 06086d8

Please sign in to comment.