From 6c6fd54d2990e432dc98854e23cf7b9837fc2b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Thu, 26 Sep 2024 13:29:25 +0200 Subject: [PATCH] [ADD] search on new account_invoice_report fields --- __manifest__.py | 1 + views/account_invoice_report.xml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 views/account_invoice_report.xml diff --git a/__manifest__.py b/__manifest__.py index e0e9832..8173da8 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -12,6 +12,7 @@ # templates "templates/report_invoice_document.xml", # views + "views/account_invoice_report.xml", "views/account_move.xml", "views/account_journal.xml", "views/product.xml", diff --git a/views/account_invoice_report.xml b/views/account_invoice_report.xml new file mode 100644 index 0000000..e8c13d2 --- /dev/null +++ b/views/account_invoice_report.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8" ?> +<odoo> + <record id="view_account_invoice_report_search_inherit" model="ir.ui.view"> + <field name="name">account.invoice.report.search.afac</field> + <field name="model">account.invoice.report</field> + <field name="inherit_id" ref="account.view_account_invoice_report_search" /> + <field name="arch" type="xml"> + <field name="duemonth" position="after"> + <separator orientation="vertical" /> + <field + string="Région d'implantation" + name="region_id" + context="{'group_by': 'region_id'}" + /> + <field + string="Statut d’adhésion actuel" + name="membership_state" + context="{'group_by': 'membership_state'}" + /> + </field> + </field> + </record> +</odoo> -- GitLab