Skip to content

Commit

Permalink
Merge 0a133a4 into f781f8d
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier-LAURENT committed Mar 31, 2015
2 parents f781f8d + 0a133a4 commit 6f944db
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
25 changes: 25 additions & 0 deletions account_invoice_period_usability/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Display in the invoice supplier form the fiscal period next to the invoice date
===============================================================================

This module was written to improve the form of the supplier invoice (and refund) by displaying both the invoice date and the fiscal period fields side by side. It is more intuitive for the accountant to have a "single point of modification" for these two so-linked concepts.

The module does not affect client invoice for which the fiscal period has to follow the invoice date.

Tip: the module OCA/web/web_sheet_full_width can help to avoid fields wrapping and loose vertical space in the form.

Credits
=======

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

* Olivier Laurent (<olivier.laurent@acsone.eu>)

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org

This module is maintained by the OCA.
1 change: 1 addition & 0 deletions account_invoice_period_usability/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
53 changes: 53 additions & 0 deletions account_invoice_period_usability/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of account_invoice_period_usability,
# an Odoo module.
#
# Authors: ACSONE SA/NV (<http://acsone.eu>)
#
# account_invoice_period_usability is free software:
# you can redistribute it and/or modify it under the terms of the GNU
# Affero General Public License as published by the Free Software
# Foundation,either version 3 of the License, or (at your option) any
# later version.
#
# account_invoice_period_usability is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with account_invoice_period_usability.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

{
'name': 'Account Invoice Period Usability',
'summary': """
Display in the supplier invoice form the fiscal period
next to the invoice date""",
'author': 'ACSONE SA/NV',
'website': 'http://www.acsone.eu',
'category': 'Accounting & Finance',
'version': '1.0',
'license': 'AGPL-3',
'depends': [
'account',
],
'images': [
],
'data': [
'views/account_invoice_view.xml',
],
'qweb': [
],
'demo': [
],
'test': [
],
'installable': True,
'auto_install': False,
'application': False,
}
29 changes: 29 additions & 0 deletions account_invoice_period_usability/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<record model="ir.ui.view" id="invoice_supplier_form">
<field name="name">account.invoice.supplier.form (account_invoice_period_usability)</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form" />
<field name="arch" type="xml">
<field name="period_id" position="replace"/>
<field name="date_invoice" position="replace">
<label for="date_invoice"/>
<div>
<field name="date_invoice"
on_change="onchange_payment_term_date_invoice(payment_term, date_invoice)"
class="oe_inline"/>

<field name="period_id" domain="[('state', '=', 'draft'), ('company_id', '=', company_id)]"
groups="account.group_account_manager"
string="Accounting Period"
placeholder="force period"
class="oe_inline"/>
</div>
</field>
</field>
</record>

</data>
</openerp>

0 comments on commit 6f944db

Please sign in to comment.