Add patch to add relate to credit notes in invoices
This commit is contained in:
parent
99e389685b
commit
ac3fc7f50c
|
@ -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"
|
Loading…
Reference in New Issue