trytond-patches/issue10091002_1.diff

50 lines
2.2 KiB
Diff

diff -r c7607908611c trytond/trytond/modules/account_invoice/invoice.xml
--- a/trytond/trytond/modules/account_invoice/invoice.xml Wed May 11 11:37:56 2016 +0200
+++ b/trytond/trytond/modules/account_invoice/invoice.xml Mon May 30 14:08:53 2016 +0200
@@ -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" eval="[('lines.origin.invoice', 'in', Eval('active_ids'), 'account.invoice.line')]" pyson="1"/>
+ </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_form">
<field name="name">Customer Invoices</field>
<field name="res_model">account.invoice</field>
diff -r c7607908611c trytond/trytond/modules/account_invoice/locale/ca_ES.po
--- a/trytond/trytond/modules/account_invoice/locale/ca_ES.po Wed May 11 11:37:56 2016 +0200
+++ b/trytond/trytond/modules/account_invoice/locale/ca_ES.po Mon May 30 14:08:53 2016 +0200
@@ -1053,6 +1053,10 @@
msgid "Invoice Tax"
msgstr "Impost de factura"
+msgctxt "model:ir.action,name:act_credit_notes_form"
+msgid "Credit Notes"
+msgstr "Abonaments"
+
msgctxt "model:ir.action,name:act_invoice_form"
msgid "Invoices"
msgstr "Totes les factures"
diff -r c7607908611c trytond/trytond/modules/account_invoice/locale/es_ES.po
--- a/trytond/trytond/modules/account_invoice/locale/es_ES.po Wed May 11 11:37:56 2016 +0200
+++ b/trytond/trytond/modules/account_invoice/locale/es_ES.po Mon May 30 14:08:53 2016 +0200
@@ -1050,6 +1050,10 @@
msgid "Invoice Tax"
msgstr "Impuesto de factura"
+msgctxt "model:ir.action,name:act_credit_notes_form"
+msgid "Credit Notes"
+msgstr "Abonos"
+
msgctxt "model:ir.action,name:act_invoice_form"
msgid "Invoices"
msgstr "Todas las facturas"