-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] account_move_invoice_date_due_normal_date_tree: Change tree fie…
…ld widget view
- Loading branch information
Showing
6 changed files
with
94 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,60 @@ | ||
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg | ||
:target: https://opensource.org/licenses/LGPL-3.0 | ||
:alt: License: LGPL-3 | ||
|
||
====================================================== | ||
Account Move Invoice Date Due Normal Date in Tree View | ||
====================================================== | ||
|
||
Overview | ||
======== | ||
|
||
The **Account Move Invoice Date Due Normal Date in Tree View** module modifies the behavior of the **Invoice Date Due** field in the tree view of account moves. It enhances the visibility and functionality of the field based on the payment state of the invoice. | ||
|
||
Features | ||
======== | ||
|
||
- **Dynamic Visibility**: | ||
|
||
- Hides the **Invoice Date Due** field for invoices with certain payment states, such as "Paid", "In Payment", or "Reversed". | ||
|
||
- **Optional Field**: | ||
|
||
- Adds the **Invoice Date Due** field as an optional field in the tree view for better customization. | ||
|
||
Usage | ||
===== | ||
|
||
1. **Install the Module**: | ||
|
||
- Install the **Account Move Invoice Date Due Normal Date in Tree View** module from the Apps menu. | ||
|
||
2. **View the Changes**: | ||
|
||
- Navigate to the **Invoices** list view in the **Accounting** app. | ||
|
||
- Observe that the **Invoice Date Due** field is hidden for invoices with specific payment states ("Paid", "In Payment", or "Reversed"). | ||
|
||
- The field is available as an optional column for other invoices. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
If you encounter any issues, please report them on the GitHub repository at `GitHub Issues <https://github.com/avanzosc/odoo-addons/issues>`_. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Ana Juaristi <anajuaristi@avanzosc.es> | ||
|
||
* Unai Beristain <unaiberistain@avanzosc.es> | ||
|
||
For specific questions regarding this module, please contact the contributors. For support, please use the official issue tracker. | ||
|
||
License | ||
======= | ||
|
||
This project is licensed under the LGPL-3 License. For more details, refer to the LICENSE file or visit <https://opensource.org/licenses/LGPL-3.0>. |
Empty file.
14 changes: 14 additions & 0 deletions
14
account_move_invoice_date_due_normal_date_tree/__manifest__.py
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,14 @@ | ||
{ | ||
"name": "account_move_invoice_date_due_normal_date_tree", | ||
"version": "16.0.1.0.0", | ||
"category": "Accounting", | ||
"author": "Avanzosc", | ||
"license": "LGPL-3", | ||
"depends": ["account"], | ||
"data": [ | ||
"views/account_move_views.xml", | ||
], | ||
"installable": True, | ||
"application": False, | ||
"website": "https://github.com/avanzosc/odoo-addons", | ||
} |
13 changes: 13 additions & 0 deletions
13
account_move_invoice_date_due_normal_date_tree/views/account_move_views.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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<record id="view_invoice_tree_inherit" model="ir.ui.view"> | ||
<field name="name">account.invoice.tree.inherit</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_invoice_tree" /> | ||
<field name="arch" type="xml"> | ||
<field name="invoice_date_due" position="attributes"> | ||
<attribute name="widget" /> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |
1 change: 1 addition & 0 deletions
1
...oice_date_due_normal_date_tree/odoo/addons/account_move_invoice_date_due_normal_date_tree
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 @@ | ||
../../../../account_move_invoice_date_due_normal_date_tree |
6 changes: 6 additions & 0 deletions
6
setup/account_move_invoice_date_due_normal_date_tree/setup.py
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,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |