2013-07-11 13:05:28 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<record id="view_location_form_inherit" model="ir.ui.view">
|
|
|
|
<field name="name">stock.location.form.inherit</field>
|
|
|
|
<field name="model">stock.location</field>
|
2013-07-18 16:47:15 +00:00
|
|
|
<field name="inherit_id" ref="stock.view_location_form"/>
|
2013-07-11 13:05:28 +00:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//group[@name='localization']" position="after">
|
|
|
|
<group string="Accounting Information" attrs="{'invisible':[('usage','not in',('inventory','production'))]}">
|
|
|
|
<field name="valuation_in_account_id"/>
|
|
|
|
<field name="valuation_out_account_id"/>
|
|
|
|
</group>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2013-08-28 15:32:10 +00:00
|
|
|
|
|
|
|
<record id="view_picking_inherit_form2" model="ir.ui.view">
|
|
|
|
<field name="name">stock.picking.form.inherit</field>
|
|
|
|
<field name="model">stock.picking</field>
|
|
|
|
<field name="inherit_id" ref="stock.view_picking_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//button[@name='do_prepare_partial']" position="after">
|
|
|
|
<button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|',('state','<>','done'),('invoice_state','<>','2binvoiced')]}" type="action" class="oe_highlight" groups="base.group_user"/>
|
|
|
|
<button name="%(action_stock_invoice_onshipping)d" string="Refund Invoice" attrs="{'invisible': ['|',('state','<>','done'),('invoice_state','<>','invoiced')]}" type="action" class="oe_highlight" groups="base.group_user" context="{'inv_type': 'out_refund'}"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='move_type']" position="after">
|
|
|
|
<field name="invoice_state" groups="account.group_account_invoice"/>
|
|
|
|
</xpath>
|
|
|
|
|
|
|
|
</field>
|
|
|
|
</record>
|
2013-07-11 13:05:28 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|