From a321671b1da22862bb78713f3a939cf095455e6c Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@le-filament.com>
Date: Wed, 14 May 2025 16:32:49 +0200
Subject: [PATCH] remove unused view

---
 models/financial_contract_guarantee_line.py |  2 +-
 views/financial_contract_guarantee_line.xml | 40 ++-------------------
 2 files changed, 3 insertions(+), 39 deletions(-)

diff --git a/models/financial_contract_guarantee_line.py b/models/financial_contract_guarantee_line.py
index fa78d4e..ff1f6e0 100644
--- a/models/financial_contract_guarantee_line.py
+++ b/models/financial_contract_guarantee_line.py
@@ -52,7 +52,7 @@ class FinancialContractGuaranteeLine(models.Model):
     # Company Data
     segment_code = fields.Char("Code Segment")
     bdf_scoring = fields.Char("Cotation BDF")
-    bdf_date = fields.Char("Date Cotation BDF")
+    bdf_date = fields.Date("Date Cotation BDF")
     mcdo_scoring = fields.Char("Cotation MacDonough")
     mcdo_date = fields.Date("Date Cotation MacDonough")
     branch_code = fields.Char("Code branche")
diff --git a/views/financial_contract_guarantee_line.xml b/views/financial_contract_guarantee_line.xml
index 5a98d15..1d13ec9 100644
--- a/views/financial_contract_guarantee_line.xml
+++ b/views/financial_contract_guarantee_line.xml
@@ -3,42 +3,6 @@
      License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
 <odoo>
     <!-- Tree -->
-    <record id="financial_contract_guarantee_line_tree_view" model="ir.ui.view">
-        <field name="name">financial.contract.guarantee.line.list</field>
-        <field name="model">financial.contract.guarantee.line</field>
-        <field name="arch" type="xml">
-            <list>
-                <field name="currency_id" invisible="1" />
-                <field name="company_id" invisible="1" />
-                <field
-                    name="company_id"
-                    optional="hide"
-                    groups="base.group_multi_company"
-                />
-                <field name="line_date" />
-                <field name="partner_id" />
-                <field name="guarantee_id" />
-                <field name="payment_date" />
-                <field name="amount_initial" optional="show" />
-                <field name="amount_received" optional="show" />
-                <field name="end_date" />
-                <field name="remaining_capital" />
-                <field name="loan_duration" />
-                <field name="guarantee_rate" widget="percentage" />
-                <field name="guarantee_amount" />
-                <field name="segment_code" optional="show" />
-                <field name="bdf_scoring" optional="show" />
-                <field name="bdf_date" optional="show" />
-                <field name="mcdo_scoring" optional="show" />
-                <field name="mcdo_date" optional="show" />
-                <field name="branch_code" optional="show" />
-                <field name="commission_rate" widget="percentage" optional="show" />
-                <field name="commission_amount" optional="show" />
-                <field name="commission_date_due" optional="show" />
-            </list>
-        </field>
-    </record>
-
     <record id="financial_contract_guarantee_line_light_tree_view" model="ir.ui.view">
         <field name="name">financial.contract.guarantee.line.list</field>
         <field name="model">financial.contract.guarantee.line</field>
@@ -52,8 +16,8 @@
                     groups="base.group_multi_company"
                 />
                 <field name="line_date" />
-                <field name="partner_id" invisible="1" />
-                <field name="guarantee_id" invisible="1" />
+                <!-- <field name="partner_id" /> -->
+                <!-- <field name="guarantee_id" /> -->
                 <field name="payment_date" optional="hide" />
                 <field name="amount_initial" optional="show" />
                 <field name="amount_received" optional="show" />
-- 
GitLab