21 lines
914 B
XML
21 lines
914 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- Add Direct Print button to Sale Order form view -->
|
|
<record id="view_order_form_direct_print" model="ir.ui.view">
|
|
<field name="name">sale.order.form.direct.print</field>
|
|
<field name="model">sale.order</field>
|
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//header" position="inside">
|
|
<button name="action_direct_print_quotation"
|
|
type="object"
|
|
string="Direct Print"
|
|
class="btn-primary"
|
|
invisible="state == 'cancel'"
|
|
groups="sales_team.group_sale_salesman"/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |