| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="sale_order_template_view_search" model="ir.ui.view"> |
| 4 |
<field name="name">sale.order.template.search</field> |
| 5 |
<field name="model">sale.order.template</field> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
<search string="Search Quotation Template"> |
| 8 |
<field name="name"/> |
| 9 |
<filter string="Archived" name="inactive" domain="[('active','=', False)]"/> |
| 10 |
<group> |
| 11 |
<filter string="Company" name="company_id" context="{'group_by': 'company_id'}" groups="base.group_multi_company"/> |
| 12 |
</group> |
| 13 |
</search> |
| 14 |
</field> |
| 15 |
</record> |
| 16 |
|
| 17 |
<record id="sale_order_template_view_form" model="ir.ui.view"> |
| 18 |
<field name="name">sale.order.template.form</field> |
| 19 |
<field name="model">sale.order.template</field> |
| 20 |
<field name="arch" type="xml"> |
| 21 |
<form string="Quotation Template"> |
| 22 |
<sheet> |
| 23 |
<div name="button_box" class="oe_button_box"/> |
| 24 |
<widget name="web_ribbon" title="Archived" bg_color="text-bg-danger" invisible="active"/> |
| 25 |
<div class="oe_title" name="sale_order_template_title"> |
| 26 |
<label for="name" id="sale_order_template_title"/> |
| 27 |
<h1> |
| 28 |
<field name="name" placeholder="e.g. Standard Consultancy Package" class="d-block"/> |
| 29 |
</h1> |
| 30 |
</div> |
| 31 |
<group> |
| 32 |
<group name="sale_info"> |
| 33 |
<field name="active" invisible="1"/> |
| 34 |
<label for="number_of_days" string="Quotation Validity"/> |
| 35 |
<div id="number_of_days"> |
| 36 |
<field name="number_of_days" style="width: 3rem;"/> |
| 37 |
<div class="d-inline-block">days</div> |
| 38 |
</div> |
| 39 |
<field name="mail_template_id" context="{'default_model': 'sale.order'}"/> |
| 40 |
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company" placeholder="Visible to all"/> |
| 41 |
<field name="journal_id"/> |
| 42 |
</group> |
| 43 |
<group name="so_confirmation"> |
| 44 |
<field name="require_signature"/> |
| 45 |
<label for="require_payment"/> |
| 46 |
<div id="require_payment" class="o_row"> |
| 47 |
<field name="require_payment" class="oe_inline"/> |
| 48 |
<span invisible="not require_payment">of</span> |
| 49 |
<field name="prepayment_percent" |
| 50 |
invisible="not require_payment" |
| 51 |
widget="percentage" |
| 52 |
class="oe_inline"/> |
| 53 |
</div> |
| 54 |
</group> |
| 55 |
</group> |
| 56 |
<notebook name="main_book"> |
| 57 |
<page string="Lines" name="order_lines"> |
| 58 |
<field |
| 59 |
name="sale_order_template_line_ids" |
| 60 |
widget="so_template_line_o2m" |
| 61 |
options="{ 'subsections': True }" |
| 62 |
> |
| 63 |
<form string="Quotation Template Lines"> |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
<field name="sequence" invisible="1"/> |
| 69 |
<field name="display_type" invisible="1"/> |
| 70 |
<group invisible="display_type"> |
| 71 |
<group> |
| 72 |
<field name="product_id" required="not display_type"/> |
| 73 |
<label for="product_uom_qty"/> |
| 74 |
<div> |
| 75 |
<field name="product_uom_qty" class="oe_inline"/> |
| 76 |
</div> |
| 77 |
</group> |
| 78 |
</group> |
| 79 |
<notebook colspan="4" name="description"> |
| 80 |
<page string="Description" name="order_description" invisible="display_type"> |
| 81 |
<field name="name" /> |
| 82 |
</page> |
| 83 |
<page string="Section" name="order_section" invisible="display_type != 'line_section'"> |
| 84 |
<field name="name" /> |
| 85 |
</page> |
| 86 |
<page string="Note" name="order_note" invisible="display_type != 'line_note'"> |
| 87 |
<field name="name" /> |
| 88 |
</page> |
| 89 |
</notebook> |
| 90 |
</form> |
| 91 |
<list string="Quotation Template Lines" editable="bottom"> |
| 92 |
<control> |
| 93 |
<create name="add_product_control" string="Add a product"/> |
| 94 |
<create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/> |
| 95 |
<create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/> |
| 96 |
</control> |
| 97 |
<field name="display_type" column_invisible="True"/> |
| 98 |
<field name="is_optional" column_invisible="True"/> |
| 99 |
<field name="sequence" widget="handle"/> |
| 100 |
<field name="product_id"/> |
| 101 |
<field name="name"/> |
| 102 |
<field name="product_uom_qty"/> |
| 103 |
<field |
| 104 |
name="product_uom_id" |
| 105 |
groups="uom.group_uom" |
| 106 |
required="not display_type"/> |
| 107 |
</list> |
| 108 |
</field> |
| 109 |
</page> |
| 110 |
<page string="Terms & Conditions" name="terms_and_conditions"> |
| 111 |
<field |
| 112 |
name="note" |
| 113 |
nolabel="1" |
| 114 |
placeholder="The Administrator can set default Terms & Conditions in Sales Settings. Terms set here will show up instead if you select this quotation template."/> |
| 115 |
</page> |
| 116 |
</notebook> |
| 117 |
</sheet> |
| 118 |
</form> |
| 119 |
</field> |
| 120 |
</record> |
| 121 |
|
| 122 |
<record id="sale_order_template_view_tree" model="ir.ui.view"> |
| 123 |
<field name="name">sale.order.template.list</field> |
| 124 |
<field name="model">sale.order.template</field> |
| 125 |
<field name="arch" type="xml"> |
| 126 |
<list string="Quotation Template"> |
| 127 |
<field name="sequence" widget="handle"/> |
| 128 |
<field name="name"/> |
| 129 |
<field name="company_id" groups="base.group_multi_company"/> |
| 130 |
</list> |
| 131 |
</field> |
| 132 |
</record> |
| 133 |
|
| 134 |
<record id="sale_order_template_action" model="ir.actions.act_window"> |
| 135 |
<field name="name">Quotation Templates</field> |
| 136 |
<field name="res_model">sale.order.template</field> |
| 137 |
<field name="view_mode">list,form</field> |
| 138 |
<field name="help" type="html"> |
| 139 |
<p class="o_view_nocontent_smiling_face"> |
| 140 |
Create your quotation template |
| 141 |
</p><p> |
| 142 |
Use templates to create polished, professional quotes in minutes. |
| 143 |
Send these quotes by email and let your customers sign online. |
| 144 |
Use cross-selling and discounts to push and boost your sales. |
| 145 |
</p> |
| 146 |
</field> |
| 147 |
</record> |
| 148 |
|
| 149 |
</odoo> |