flectra/addons/sale_stock/views/stock_views.xml

50 lines
2.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<data>
<template id="assets_backend" inherit_id="web.assets_backend">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/sale_stock/static/src/js/tour.js"></script>
</xpath>
</template>
<menuitem id="menu_aftersale" name="After-Sale"
groups="sales_team.group_sale_salesman"
parent="sale.sale_menu_root" sequence="5" />
<menuitem id="menu_invoiced" name="Invoicing" parent="menu_aftersale" sequence="1"/>
<record id="stock_location_route_view_form_inherit_sale_stock" model="ir.ui.view">
<field name="name">stock.location.route.form</field>
<field name="inherit_id" ref="stock.stock_location_route_form_view"/>
<field name="model">stock.location.route</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='warehouse_ids']" position="after">
<br/><field name="sale_selectable" string="Sales Order Lines"/>
</xpath>
</field>
</record>
<record id="product_template_view_form_inherit_sale" model="ir.ui.view">
<field name="name">product.template.inherit.form</field>
<field name="inherit_id" ref="sale.product_template_form_view_sale_order_button"/>
<field name="model">product.template</field>
<field name="arch" type="xml">
<xpath expr="//button[@name='action_view_sales'][last()]" position="replace" />
</field>
</record>
<record id="product_template_view_form_inherit_stock" model="ir.ui.view">
<field name="name">product.template.inherit.form</field>
<field name="inherit_id" ref="stock.product_template_form_view_procurement_button"/>
<field name="model">product.template</field>
<field name="arch" type="xml">
<button name="action_view_orderpoints" position="after">
<button class="oe_stat_button" name="action_view_sales"
type="object" icon="fa-usd" groups="sales_team.group_sale_salesman">
<field string="Sales" name="sales_count" widget="statinfo" />
</button>
</button>
</field>
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>