Add patch to add relate to credit notes in invoices

This commit is contained in:
Guillem Barba 2015-01-22 14:21:09 +01:00
parent 99e389685b
commit ac3fc7f50c
2 changed files with 67 additions and 0 deletions

66
issue10091002_1.diff Normal file
View File

@ -0,0 +1,66 @@
# HG changeset patch
# User Guillem Barba <guillembarba@gmail.com>
add relate to Credit Notes in Invoices
issue4506
review10091002
Index: invoice.xml
===================================================================
--- a/modules/account_invoice/invoice.xml
+++ b/modules/account_invoice/invoice.xml
@@ -38,6 +38,17 @@
<field name="act_window" ref="act_invoice_form"/>
</record>
+ <record model="ir.action.act_window" id="act_credit_notes_form">
+ <field name="name">Credit Notes</field>
+ <field name="res_model">account.invoice</field>
+ <field name="domain">[('lines.origin.invoice', 'in', Eval('active_ids'), 'account.invoice.line')]</field>
+ </record>
+ <record model="ir.action.keyword" id="act_open_credit_notes_keyword1">
+ <field name="keyword">form_relate</field>
+ <field name="model">account.invoice,-1</field>
+ <field name="action" ref="act_credit_notes_form"/>
+ </record>
+
<record model="ir.action.act_window" id="act_invoice_out_invoice_form">
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
Index: ca_ES.xml
===================================================================
--- a/modules/account_invoice/locale/ca_ES.po
+++ b/modules/account_invoice/locale/ca_ES.po
@@ -1053,6 +1053,10 @@
msgid "Invoices"
msgstr "Factures"
+msgctxt "model:ir.action,name:act_credit_notes_form"
+msgid "Credit Notes"
+msgstr "Abonaments"
+
msgctxt "model:ir.action,name:act_invoice_in_credit_note_form"
msgid "Supplier Credit Notes"
msgstr "Abonaments de proveïdor"
Index: ca_ES.xml
===================================================================
--- a/modules/account_invoice/locale/es_ES.po
+++ b/modules/account_invoice/locale/es_ES.po
@@ -1045,6 +1045,10 @@
msgid "Invoices"
msgstr "Todas las facturas"
+msgctxt "model:ir.action,name:act_credit_notes_form"
+msgid "Credit Notes"
+msgstr "Abonos"
+
msgctxt "model:ir.action,name:act_invoice_form2"
msgid "Invoices"
msgstr "Facturas"

1
series
View File

@ -36,3 +36,4 @@ sale_fix_invoiced_quantity_calculation.diff
purchase_shipment_cost.diff
issue7881002_1.diff
issue10091002_1.diff