Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] account_move_invoice_date_due_normal_date_tree: Change tree field widget view #3065

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions account_move_invoice_date_due_normal_date_tree/README.rst
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 account_move_invoice_date_due_normal_date_tree/__manifest__.py
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",
}
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>
6 changes: 6 additions & 0 deletions setup/account_move_invoice_date_due_normal_date_tree/setup.py
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,
)
Loading