From b57b7f2275b1c4e74586849c791e42c359d06c55 Mon Sep 17 00:00:00 2001 From: Guillem Barba Date: Wed, 22 Jun 2016 12:44:23 +0200 Subject: [PATCH] issue10091002_1: filter by invoice type on credit notes relate --- issue10091002_1.diff | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/issue10091002_1.diff b/issue10091002_1.diff index e4e3517..e2775bb 100644 --- a/issue10091002_1.diff +++ b/issue10091002_1.diff @@ -13,11 +13,11 @@ Index: invoice.xml @@ -38,6 +38,17 @@ - + + + Credit Notes + account.invoice -+ [('lines.origin.invoice', 'in', Eval('active_ids'), 'account.invoice.line')] ++ [('lines.origin.invoice', 'in', Eval('active_ids'), 'account.invoice.line'),('type', 'in', ['out_credit_note', 'in_credit_note'])] + + + form_relate @@ -38,7 +38,7 @@ Index: ca_ES.xml @@ -1053,6 +1053,10 @@ msgid "Invoices" msgstr "Factures" - + +msgctxt "model:ir.action,name:act_credit_notes_form" +msgid "Credit Notes" +msgstr "Abonaments" @@ -56,7 +56,7 @@ Index: ca_ES.xml @@ -1045,6 +1045,10 @@ msgid "Invoices" msgstr "Todas las facturas" - + +msgctxt "model:ir.action,name:act_credit_notes_form" +msgid "Credit Notes" +msgstr "Abonos"