You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.4 KiB
31 lines
1.4 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Account move view form inherit-->
|
|
<record id="view_move_form" model="ir.ui.view">
|
|
<field name="name">account.move.view.form.inherit.invoice.stock.move
|
|
</field>
|
|
<field name="model">account.move</field>
|
|
<field name="inherit_id" ref="account.view_move_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="action_stock_move" string="Transfer"
|
|
type="object" class="oe_highlight"
|
|
invisible="state == 'draft' or picking_count == 1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='invoice_date']" position="after">
|
|
<field name="picking_type_id" readonly="1"/>
|
|
<field name="invoice_picking_id" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<button type="object"
|
|
name="action_view_picking"
|
|
class="oe_stat_button"
|
|
invisible="picking_count < 1 or state == 'draft'"
|
|
icon="fa-truck">
|
|
<field name="picking_count" string="Shipment"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|