From e0354164965d647f89ab0eb837d3b3a2343b0f31 Mon Sep 17 00:00:00 2001
From: jordan <jordan@le-filament.com>
Date: Thu, 21 Jan 2021 11:19:41 +0100
Subject: [PATCH] [fix] create = false on "appels de cotisations" view

---
 views/account_invoice.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/account_invoice.xml b/views/account_invoice.xml
index ce763ec..69e2f1d 100644
--- a/views/account_invoice.xml
+++ b/views/account_invoice.xml
@@ -32,7 +32,7 @@
             <field name="res_model">account.invoice</field>
             <field name="view_mode">tree,form,kanban,calendar,graph,pivot</field>
             <field name="domain" eval="[('type','in', ['out_invoice', 'out_refund']), ('is_contribution', '!=', False)]"/>
-            <field name="context" eval="{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale', 'default_is_contribution': True,}"/>
+            <field name="context" eval="{'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale', 'default_is_contribution': True, 'create': False,}"/>
             <field name="search_view_id" ref="account.view_account_invoice_filter"/>
         </record>
         <record id="action_invoice_scop_cotisation_view1" model="ir.actions.act_window.view">
-- 
GitLab