| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="view_order_form_inherit_sale_stock" model="ir.ui.view"> |
| 5 |
<field name="name">sale.order.form.sale.dropshipping</field> |
| 6 |
<field name="model">sale.order</field> |
| 7 |
<field name="inherit_id" ref="sale_stock.view_order_form_inherit_sale_stock"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<button name="action_view_delivery" position="before"> |
| 10 |
<t groups="purchase.group_purchase_user"> |
| 11 |
<button |
| 12 |
name="action_view_dropship" |
| 13 |
type="object" |
| 14 |
class="oe_stat_button" |
| 15 |
icon="fa-truck" |
| 16 |
invisible="dropship_picking_count == 0" |
| 17 |
groups="stock.group_stock_user"> |
| 18 |
<field name="dropship_picking_count" widget="statinfo" string="Dropship"/> |
| 19 |
</button> |
| 20 |
</t> |
| 21 |
</button> |
| 22 |
</field> |
| 23 |
</record> |
| 24 |
|
| 25 |
</odoo> |