Skip to content

Commit

Permalink
Merge 2983b17 into 933e1b6
Browse files Browse the repository at this point in the history
  • Loading branch information
charbeljc committed Jul 6, 2015
2 parents 933e1b6 + 2983b17 commit 49b8f2f
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 39 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ env:
matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB
- TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="account_invoice_validation_workflow"
- TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="account_invoice_validation_workflow"
- TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="account_invoice_validation_workflow" EXCLUDE="stock_picking_invoicing,invoice_fiscal_position_update,account_payment_term_extension,account_invoice_shipping_address,account_invoice_rounding,account_invoice_partner,account_invoice_merge,account_invoice_line_sort,account_invoice_line_description,account_invoice_force_number"
- TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="account_invoice_validation_workflow" EXCLUDE="stock_picking_invoicing,invoice_fiscal_position_update,account_payment_term_extension,account_invoice_shipping_address,account_invoice_rounding,account_invoice_partner,account_invoice_merge,account_invoice_line_sort,account_invoice_line_description,account_invoice_force_number"

virtualenv:
system_site_packages: true
Expand All @@ -30,6 +32,7 @@ install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
- pip install anybox.testing.openerp # needed for testing account_invoice_line_sort

script:
- travis_run_tests
Expand Down
61 changes: 61 additions & 0 deletions account_invoice_zero/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3


Account Invoice Zero
====================

Invoices with a amount of 0 are automatically set as paid.

When an invoice has an amount of 0, OpenERP still generates a
receivable/payable move line with a 0 balance. The invoice stays as
open even if there is nothing to pay. The user has 2 ways to set the
invoice as paid: create a payment of 0 and reconcile the line with the
payment or reconcile the receivable/payable move line with itself.
This module takes the latter approach and will directly set the invoice
as paid once it is opened.



For further information, please visit:

* https://www.odoo.com/forum/help-1

Known issues / Roadmap
======================

* ...

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/{project_repo}/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
`here <https://github.com/OCA/{project_repo}/issues/new?body=module:%20{module_name}%0Aversion:%20{version}%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Pedro M. Baeza <pedro.baeza@gmail.com>
* Charbel Jacquin <charbel.jacquin@camptocamp.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
: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.

To contribute to this module, please visit http://odoo-community.org.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,11 @@
'category': 'Accounting & Finance',
'depends': ['account',
],
'description': """
Account Invoice Zero
====================
Invoices with a amount of 0 are automatically set as paid.
When an invoice has an amount of 0, OpenERP still generates a
receivable/payable move line with a 0 balance. The invoice stays as
open even if there is nothing to pay. The user has 2 ways to set the
invoice as paid: create a payment of 0 and reconcile the line with the
payment or reconcile the receivable/payable move line with itself.
This module takes the latter approach and will directly set the invoice
as paid once it is opened.
""",
'website': 'http://www.camptocamp.com',
'data': [],
'test': ['test/account_invoice_zero_paid.yml',
'test/account_invoice_no_zero_open.yml',
],
'installable': False,
'installable': True,
'auto_install': False,
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@
!assert {model: account.invoice, id: account_invoice_state}:
- state == 'draft'
-
I called the "Confirm Draft Invoices" wizard
I change the state of invoice by clicking validate button
-
!record {model: account.invoice.confirm, id: account_invoice_confirm_0}:
{}
-
I clicked on Confirm Invoices Button
-
!python {model: account.invoice.confirm}: |
self.invoice_confirm(cr, uid, [ref("account_invoice_confirm_0")], {"lang": 'en_US',
"tz": False, "active_model": "account.invoice", "active_ids": [ref("account_invoice_state")],
"type": "out_invoice", "active_id": ref("account_invoice_state"), })
!workflow {model: account.invoice, action: invoice_open, ref: account_invoice_state}
-
I check that customer invoice state is "Open"
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,9 @@
!assert {model: account.invoice, id: account_invoice_zero_paid}:
- state == 'draft'
-
I called the "Confirm Draft Invoices" wizard
I change the state of invoice by executing the "invoice_open" workflow
-
!record {model: account.invoice.confirm, id: account_invoice_confirm_0}:
{}
-
I clicked on Confirm Invoices Button
-
!python {model: account.invoice.confirm}: |
self.invoice_confirm(cr, uid, [ref("account_invoice_confirm_0")], {"lang": 'en_US',
"tz": False, "active_model": "account.invoice", "active_ids": [ref("account_invoice_zero_paid")],
"type": "out_invoice", "active_id": ref("account_invoice_zero_paid"), })
!workflow {model: account.invoice, action: invoice_open, ref: account_invoice_zero_paid}
-
I check that customer invoice state is "Paid"
-
Expand Down
2 changes: 1 addition & 1 deletion stock_picking_invoicing/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"data": [
"stock_view.xml",
],
"installable": True
"installable": False
}

0 comments on commit 49b8f2f

Please sign in to comment.