-
-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
29
account_invoice_period_usability/views/account_invoice_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |