← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~akretion-team/stock-logistic-flows/70-picking-invoice-link-enhanced into lp:stock-logistic-flows

 

Alexis de Lattre has proposed merging lp:~akretion-team/stock-logistic-flows/70-picking-invoice-link-enhanced into lp:stock-logistic-flows.

Requested reviews:
  Stock and Logistic Core Editors (stock-logistic-core-editors)

For more details, see:
https://code.launchpad.net/~akretion-team/stock-logistic-flows/70-picking-invoice-link-enhanced/+merge/205051

Small enhancement to get the appropriate invoice form view when clicking on the invoice link on the picking.
-- 
https://code.launchpad.net/~akretion-team/stock-logistic-flows/70-picking-invoice-link-enhanced/+merge/205051
Your team Stock and Logistic Core Editors is requested to review the proposed merge of lp:~akretion-team/stock-logistic-flows/70-picking-invoice-link-enhanced into lp:stock-logistic-flows.
=== modified file 'stock_picking_invoice_link/stock_view.xml'
--- stock_picking_invoice_link/stock_view.xml	2013-10-11 07:23:20 +0000
+++ stock_picking_invoice_link/stock_view.xml	2014-02-05 21:26:56 +0000
@@ -10,7 +10,7 @@
             <field name="inherit_id" ref="stock.view_picking_out_form"></field>
             <field name="arch" type="xml">
                 <field name="invoice_state" position="after">
-                    <field name="invoice_id" string="Invoice" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}"/>
+                    <field name="invoice_id" string="Invoice" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}" context="{'form_view_ref': 'account.invoice_form'}"/>
                 </field>
             </field>
         </record>
@@ -20,7 +20,7 @@
             <field name="inherit_id" ref="stock.view_picking_in_form"></field>
             <field name="arch" type="xml">
                 <field name="invoice_state" position="after">
-                    <field name="invoice_id" string="Invoice" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}"/>
+                    <field name="invoice_id" string="Invoice" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}" context="{'form_view_ref': 'account.invoice_supplier_form'}"/>
                 </field>
             </field>
         </record>


Follow ups