Skip to content

Commit

Permalink
[REM] l10n_ar_ux: Removed invoice report to account_ux
Browse files Browse the repository at this point in the history
closes #880

Related: ingadhoc/account-financial-tools#541
Signed-off-by: rov-adhoc <[email protected]>
  • Loading branch information
feg-adhoc committed Aug 23, 2024
1 parent 265759a commit 7b81dc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 112 deletions.
1 change: 0 additions & 1 deletion l10n_ar_ux/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from . import controllers
from . import models
from odoo import api
from . import reports
from . import wizards
from .hooks import post_init_hook

Expand Down
5 changes: 0 additions & 5 deletions l10n_ar_ux/reports/__init__.py

This file was deleted.

66 changes: 4 additions & 62 deletions l10n_ar_ux/reports/account_invoice_report_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,70 +4,12 @@
<record id="view_account_invoice_line_report_tree" model="ir.ui.view">
<field name="name">account.invoice.report.tree</field>
<field name="model">account.invoice.report</field>
<field name="inherit_id" ref="account_ux.view_account_invoice_line_report_tree"/>
<field name="arch" type="xml">
<tree decoration-info="state == 'draft'" decoration-muted="state == 'cancel'">
<field name="move_id"/>
<field name="journal_id" optional="hide"/>
<field name="partner_id"/>
<field name="l10n_ar_state_id"/>
<field name="invoice_date"/>
<field name="invoice_user_id" optional="hide"/>
<field name="company_id" optional="hide"/>
<field name="invoice_date_due" optional="hide"/>
<field name="product_id"/>
<field name="product_categ_id" optional="hide"/>
<field name="quantity" sum="Total"/>
<field name="price_unit"/>
<field name="price_average" optional="hide"/>
<field name="discount" groups="product.group_discount_per_so_line"/>
<field name="discount_amount" sum="Total" optional="hide" groups="product.group_discount_per_so_line"/>
<field name="price_subtotal_ic" sum="Total" optional="hide"/>
<field name="price_total" sum="Total" optional="hide"/>
<field name="price_subtotal" sum="Total"/>
<field name="total_cc" sum="Total"/>
<field name="state"/>
<field name="payment_state" optional="hide"/>
<field name="invoice_currency_id" optional="hide"/>
<field name="company_currency_id" column_invisible="True"/>
</tree>
<field name="partner_id" position="after">
<field name="l10n_ar_state_id"/>
</field>
</field>
</record>

<record id="view_account_invoice_report_search" model="ir.ui.view">
<field name="name">account.invoice.report.search</field>
<field name="model">account.invoice.report</field>
<field name="inherit_id" ref="account.view_account_invoice_report_search"/>
<field name="arch" type="xml">
<filter name="supplier" position="after">
<separator/>
<filter name="invoice_date" string="Invoice Date" date="invoice_date"/>
<filter name="invoice_date_due" string="Due Date" date="invoice_date_due"/>
</filter>
<filter name='user' position="after">
<filter string="Journal Entry" name="groupby_move_id" context="{'group_by':'move_id'}"/>
<filter string="Invoice Currency" name="groupby_invoice_currency_id" context="{'group_by':'invoice_currency_id'}"/>
</filter>
</field>
</record>

<record id="view_account_invoice_report_pivot" model="ir.ui.view">
<field name="name">account.invoice.report.pivot</field>
<field name="model">account.invoice.report</field>
<field name="inherit_id" ref="account.view_account_invoice_report_pivot"/>
<field name="arch" type="xml">
<pivot position="attributes">
<attribute name="disable_linking"></attribute>
</pivot>
</field>
</record>

<record id="action_account_invoice_line_report_all" model="ir.actions.act_window">
<field name="name">Invoices Lines Analysis</field>
<field name="res_model">account.invoice.report</field>
<field name="view_mode">tree,graph,pivot</field>
<field name="context">{'search_default_current':1}</field>
<field name="search_view_id" ref="account.view_account_invoice_report_search"/>
</record>

<menuitem action="action_account_invoice_line_report_all" id="menu_action_account_invoice_line_report_all" name="Invoice Lines Analysis" parent="account.account_reports_management_menu" sequence="3"/>
</odoo>
44 changes: 0 additions & 44 deletions l10n_ar_ux/reports/invoice_report.py

This file was deleted.

0 comments on commit 7b81dc0

Please sign in to comment.