From ca8a553ed66cc4f960775336fd97bb866a71b8e1 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Tue, 12 Apr 2022 12:18:10 +0200
Subject: [PATCH] [mig] Migration 13.0

---
 .pylintrc              |  2 +-
 .pylintrc-mandatory    |  2 +-
 __manifest__.py        |  2 +-
 views/account_move.xml | 14 +++++++-------
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.pylintrc b/.pylintrc
index dc6270e..542c686 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -8,7 +8,7 @@ manifest_required_authors=Le Filament
 manifest_required_keys=license
 manifest_deprecated_keys=description,active
 license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
-valid_odoo_versions=14.0
+valid_odoo_versions=13.0
 
 [MESSAGES CONTROL]
 disable=all
diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory
index 43ea239..74be5ff 100644
--- a/.pylintrc-mandatory
+++ b/.pylintrc-mandatory
@@ -8,7 +8,7 @@ manifest_required_authors=Le Filament
 manifest_required_keys=license
 manifest_deprecated_keys=description,active
 license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
-valid_odoo_versions=14.0
+valid_odoo_versions=13.0
 
 [MESSAGES CONTROL]
 disable=all
diff --git a/__manifest__.py b/__manifest__.py
index 00e1c4d..9264a36 100644
--- a/__manifest__.py
+++ b/__manifest__.py
@@ -6,7 +6,7 @@
     "summary": "Gestion de la Facturation ARESCOP National",
     "author": "Le Filament",
     "website": "https://www.le-filament.com",
-    "version": "14.0.1.0.0",
+    "version": "13.0.1.0.0",
     "license": "AGPL-3",
     "depends": ["cgscop_account", "cgscop_cotisation"],
     "data": [
diff --git a/views/account_move.xml b/views/account_move.xml
index 4202fc6..ec855e0 100644
--- a/views/account_move.xml
+++ b/views/account_move.xml
@@ -57,22 +57,22 @@
                     <filter
                         name="unpaid"
                         string="Ouvert"
-                        domain="[('state', '=', 'posted'),('payment_state', '=', 'not_paid')]"
+                        domain="[('state', '=', 'posted'),('invoice_payment_state', '=', 'not_paid')]"
                     />
                     <filter
                         name="in_payment"
                         string="En Paiement"
-                        domain="[('state', '=', 'posted'),('payment_state', '=', 'in_payment')]"
+                        domain="[('state', '=', 'posted'),('invoice_payment_state', '=', 'in_payment')]"
                     />
                     <filter
                         name="paid"
                         string="PayƩ"
-                        domain="[('state', '=', 'posted'),('payment_state', '=', 'paid')]"
+                        domain="[('state', '=', 'posted'),('invoice_payment_state', '=', 'paid')]"
                     />
                     <filter
                         name="late"
                         string="En Retard"
-                        domain="['&amp;', ('invoice_date_due', '&lt;', time.strftime('%%Y-%%m-%%d')), ('state', '=', 'posted'), ('payment_state', 'in', ('not_paid', 'partial'))]"
+                        domain="['&amp;', ('invoice_date_due', '&lt;', time.strftime('%%Y-%%m-%%d')), ('state', '=', 'posted'), ('invoice_payment_state', 'in', ('not_paid', 'partial'))]"
                         help="Overdue invoices, maturity date passed"
                     />
                     <separator />
@@ -126,10 +126,10 @@
             <field name="view_mode">tree,kanban,form,pivot,graph</field>
             <field
                 name="domain"
-            >[('move_type','in',('out_invoice', 'out_refund'))]</field>
+            >[('type','in',('out_invoice', 'out_refund'))]</field>
             <field
                 name="context"
-            >{'move_type':'out_invoice', 'journal_type': 'sale'}</field>
+            >{'type':'out_invoice', 'journal_type': 'sale'}</field>
             <field
                 name="search_view_id"
                 ref="cgscop_account_arescop.view_account_move_arescop_filter"
@@ -138,7 +138,7 @@
         <record id="action_invoice_customer_tree" model="ir.actions.act_window.view">
             <field eval="1" name="sequence" />
             <field name="view_mode">tree</field>
-            <field name="view_id" ref="account.view_out_invoice_tree" />
+            <field name="view_id" ref="account.view_invoice_tree" />
             <field name="act_window_id" ref="action_arescop_account_move" />
         </record>
         <record id="action_invoice_customer_form" model="ir.actions.act_window.view">
-- 
GitLab