mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
66 lines
2.2 KiB
Diff
66 lines
2.2 KiB
Diff
# HG changeset patch
|
|
# User Guillem Barba <guillembarba@gmail.com>
|
|
add relate to Credit Notes in Invoices
|
|
|
|
issue4506
|
|
review10091002
|
|
|
|
Index: invoice.xml
|
|
===================================================================
|
|
|
|
--- .a/trytond/trytond/modules/account_invoice/invoice.xml
|
|
+++ .b/trytond/trytond/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/trytond/trytond/modules/account_invoice/locale/ca_ES.po
|
|
+++ .b/trytond/trytond/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/trytond/trytond/modules/account_invoice/locale/es_ES.po
|
|
+++ .b/trytond/trytond/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"
|