Debian Codegraph @

addons/sale/views/sale_order_views.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3
4 <!-- VIEWS -->
5
6 <record id="sale_order_view_activity" model="ir.ui.view">
7 <field name="name">sale.order.activity</field>
8 <field name="model">sale.order</field>
9 <field name="arch" type="xml">
10 <activity string="Sales Order">
11 <field name="currency_id"/>
12 <templates>
13 <div t-name="activity-box" class="d-block">
14 <div class="d-flex justify-content-between">
15 <field name="name" display="full" class="o_text_block o_text_bold"/>
16 <div class="m-1"/>
17 <field name="amount_total" widget="monetary"/>
18 </div>
19 <div class="d-flex justify-content-between">
20 <field name="partner_id" muted="1" display="full" class="o_text_block"/>
21 <div class="m-1"/>
22 <field name="state" widget="badge"
23 decoration-info="state == 'draft'" decoration-success="state == 'sale'"/>
24 </div>
25 </div>
26 </templates>
27 </activity>
28 </field>
29 </record>
30
31 <record id="view_sale_order_calendar" model="ir.ui.view">
32 <field name="name">sale.order.calendar</field>
33 <field name="model">sale.order</field>
34 <field name="arch" type="xml">
35 <calendar string="Sales Orders" create="0" mode="month" date_start="activity_date_deadline" color="state" event_limit="5" quick_create="0">
36 <field name="currency_id" invisible="1"/>
37 <field name="state" filters="1" invisible="1"/>
38 <field name="activity_ids" options="{'icon': 'fa fa-clock-o'}" invisible="not activity_ids"/>
39 <field name="partner_id" avatar_field="avatar_128" options="{'icon': 'fa fa-users'}"/>
40 <field name="amount_total" widget="monetary"/>
41 <field name="payment_term_id"/>
42 </calendar>
43 </field>
44 </record>
45
46 <record id="view_sale_order_graph" model="ir.ui.view">
47 <field name="name">sale.order.graph</field>
48 <field name="model">sale.order</field>
49 <field name="arch" type="xml">
50 <graph string="Sales Orders" sample="1">
51 <field name="partner_id"/>
52 <field name="amount_total" type="measure"/>
53 </graph>
54 </field>
55 </record>
56
57 <record id="view_sale_order_pivot" model="ir.ui.view">
58 <field name="name">sale.order.pivot</field>
59 <field name="model">sale.order</field>
60 <field name="arch" type="xml">
61 <pivot string="Sales Orders" sample="1">
62 <field name="date_order" type="row"/>
63 <field name="amount_total" type="measure"/>
64 </pivot>
65 </field>
66 </record>
67
68 <record id="view_sale_order_kanban" model="ir.ui.view">
69 <field name="name">sale.order.kanban</field>
70 <field name="model">sale.order</field>
71 <field name="arch" type="xml">
72 <kanban class="o_kanban_mobile" sample="1" quick_create="false">
73 <field name="currency_id"/>
74 <progressbar field="activity_state"
75 colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
76 <templates>
77 <t t-name="card">
78 <div class="d-flex align-items-baseline mb-2">
79 <field name="partner_id" class="fw-bolder fs-5 me-2"/>
80 <field name="amount_total" widget="monetary" class="fw-bolder ms-auto flex-shrink-0"/>
81 </div>
82 <footer class="align-items-end">
83 <div class="d-flex flex-wrap gap-1 text-muted text-nowrap">
84 <field name="name"/>
85 <field name="date_order"/>
86 <field name="activity_ids" widget="kanban_activity"/>
87 </div>
88 <field name="state"
89 widget="label_selection"
90 options="{'classes': {'draft': 'info', 'cancel': 'default', 'sale': 'success'}}" class="ms-auto"/>
91 </footer>
92 </t>
93 </templates>
94 </kanban>
95 </field>
96 </record>
97
98 <record id="sale_order_kanban_upload" model="ir.ui.view">
99 <field name="name">sale.order.kanban.upload (orders)</field>
100 <field name="model">sale.order</field>
101 <field name="inherit_id" ref="view_sale_order_kanban"/>
102 <field name="mode">primary</field>
103 <field name="priority">32</field>
104 <field name="arch" type="xml">
105 <kanban position="attributes">
106 <attribute name="js_class">sale_file_upload_kanban</attribute>
107 </kanban>
108 </field>
109 </record>
110
111 <record id="sale_order_tree" model="ir.ui.view">
112 <field name="name">sale.order.list</field>
113 <field name="model">sale.order</field>
114 <field name="priority">1000</field>
115 <field name="arch" type="xml">
116 <list class="o_sale_order"
117 string="Sales Orders"
118 sample="1"
119 decoration-muted="state == 'cancel'">
120 <header>
121 <button
122 string="Create Invoices"
123 name="%(sale.action_view_sale_advance_payment_inv)d"
124 type="action"
125 class="btn-secondary"/>
126 </header>
127 <field name="message_needaction" column_invisible="True"/>
128 <field name="currency_id" column_invisible="True"/>
129
130 <field name="name" string="Number" readonly="1" decoration-bf="1"/>
131 <field name="date_order" optional="show" readonly="state in ['cancel', 'sale']"/>
132 <field name="commitment_date" optional="hide"/>
133 <field name="expected_date" optional="hide"/>
134 <field name="partner_id" readonly="1"/>
135 <field name="user_id" widget="many2one_avatar_user" optional="show"/>
136 <field name="activity_ids" widget="list_activity" optional="show"/>
137 <field name="team_id" optional="hide"/>
138 <field name="company_id" groups="!base.group_multi_company" column_invisible="True"/>
139 <field name="company_id"
140 groups="base.group_multi_company"
141 optional="show"
142 readonly="1"/>
143 <field name="amount_untaxed"
144 sum="Total Tax Excluded"
145 widget="monetary"
146 optional="hide"/>
147 <field name="amount_tax"
148 sum="Tax Total"
149 widget="monetary"
150 optional="hide"/>
151 <field name="amount_total"
152 sum="Total Tax Included"
153 widget="monetary"
154 decoration-bf="1"
155 decoration-info="invoice_status == 'to invoice'"
156 optional="show"/>
157 <field name="tag_ids"
158 widget="many2many_tags"
159 options="{'color_field': 'color'}"
160 optional="hide"/>
161 <field name="state"
162 decoration-success="state == 'sale'"
163 decoration-info="state == 'draft'"
164 decoration-primary="state == 'sent'"
165 widget="badge"
166 optional="hide"/>
167 <field name="invoice_status"
168 decoration-success="invoice_status == 'invoiced'"
169 decoration-info="invoice_status == 'to invoice'"
170 decoration-warning="invoice_status == 'upselling'"
171 widget="badge"
172 optional="show"/>
173 <field name="client_order_ref" optional="hide"/>
174 <field name="validity_date" optional="hide"/>
175 </list>
176 </field>
177 </record>
178
179 <record id="view_order_tree" model="ir.ui.view">
180 <field name="name">sale.order.list (orders)</field>
181 <field name="model">sale.order</field>
182 <field name="inherit_id" ref="sale_order_tree"/>
183 <field name="mode">primary</field>
184 <field name="priority">2</field>
185 <field name="arch" type="xml">
186 <!-- Dummy view content since empty views are not supported atm -->
187 <list position="attributes">
188 <attribute name="string">Sales Orders</attribute>
189 </list>
190 </field>
191 </record>
192
193 <record id="sale_order_list_upload" model="ir.ui.view">
194 <field name="name">sale.order.tree.upload (orders)</field>
195 <field name="model">sale.order</field>
196 <field name="inherit_id" ref="view_order_tree"/>
197 <field name="mode">primary</field>
198 <field name="priority">32</field>
199 <field name="arch" type="xml">
200 <list position="attributes">
201 <attribute name="js_class">sale_file_upload_list</attribute>
202 </list>
203 </field>
204 </record>
205
206 <record id="view_quotation_tree" model="ir.ui.view">
207 <field name="name">sale.order.list (quotes)</field>
208 <field name="model">sale.order</field>
209 <field name="inherit_id" ref="sale_order_tree"/>
210 <field name="mode">primary</field>
211 <field name="priority">4</field>
212 <field name="arch" type="xml">
213 <list position="attributes">
214 <attribute name="string">Quotations</attribute>
215 </list>
216 <field name="date_order" position="replace">
217 <field name="create_date" string="Creation Date" optional="show"/>
218 </field>
219 <field name="state" position="attributes">
220 <attribute name="optional">show</attribute>
221 </field>
222 <field name="invoice_status" position="attributes">
223 <attribute name="optional">hide</attribute>
224 </field>
225 </field>
226 </record>
227
228 <record id="view_quotation_tree_with_onboarding" model="ir.ui.view">
229 <field name="name">sale.order.list</field>
230 <field name="model">sale.order</field>
231 <field name="inherit_id" ref="view_quotation_tree"/>
232 <field name="mode">primary</field>
233 <field name="arch" type="xml">
234 <list position="attributes">
235 <attribute name="js_class">sale_onboarding_list</attribute>
236 </list>
237 </field>
238 </record>
239
240 <record id="view_quotation_kanban_with_onboarding" model="ir.ui.view">
241 <field name="name">sale.order.kanban</field>
242 <field name="model">sale.order</field>
243 <field name="inherit_id" ref="view_sale_order_kanban"/>
244 <field name="mode">primary</field>
245 <field name="arch" type="xml">
246 <kanban position="attributes">
247 <attribute name="js_class">sale_onboarding_kanban</attribute>
248 </kanban>
249 </field>
250 </record>
251
252 <record id="view_order_form" model="ir.ui.view">
253 <field name="name">sale.order.form</field>
254 <field name="model">sale.order</field>
255 <field name="arch" type="xml">
256 <form string="Sales Order" class="o_sale_order">
257 <header>
258 <button
259 string="Capture Transaction"
260 name="payment_action_capture"
261 type="object"
262 data-hotkey="shift+g"
263 class="oe_highlight"
264 invisible="not has_authorized_transaction_ids"/>
265 <button
266 string="Void Transaction"
267 name="payment_action_void"
268 type="object"
269 data-hotkey="shift+v"
270 confirm="Are you sure you want to void the authorized transaction? This action can't be undone."
271 invisible="not has_authorized_transaction_ids"/>
272 <button
273 string="Create Invoice"
274 id="create_invoice"
275 name="%(sale.action_view_sale_advance_payment_inv)d"
276 type="action"
277 class="btn-primary"
278 data-hotkey="q"
279 invisible="invoice_status != 'to invoice'"/>
280 <button
281 string="Create Invoice"
282 id="create_invoice_percentage"
283 name="%(sale.action_view_sale_advance_payment_inv)d"
284 type="action"
285 context="{'default_advance_payment_method': 'percentage'}"
286 data-hotkey="q"
287 invisible="invoice_status != 'no' or state != 'sale'"/>
288 <button
289 string="Send"
290 id="quotation_send_primary"
291 name="action_quotation_send"
292 type="object"
293 context="{'validate_analytic': True, 'check_document_layout': True}"
294 class="btn-primary"
295 data-hotkey="g"
296 invisible="state != 'draft'"/>
297 <button
298 string="Send PRO-FORMA Invoice"
299 id="send_proforma_primary"
300 name="action_quotation_send"
301 type="object"
302 context="{'proforma': True, 'validate_analytic': True}"
303 class="btn-primary"
304 groups="sale.group_proforma_sales"
305 invisible="state != 'draft' or invoice_count &gt;= 1"/>
306 <button
307 string="Confirm"
308 id="action_confirm"
309 name="action_confirm"
310 type="object"
311 context="{'validate_analytic': True}"
312 class="btn-primary"
313 data-hotkey="q"
314 invisible="state != 'sent'"/>
315 <button
316 string="Print"
317 name="sale.action_report_saleorder"
318 type="action"
319 data-hotkey="i"
320 invisible="state == 'sale'"/>
321 <button
322 string="Confirm"
323 name="action_confirm"
324 type="object"
325 context="{'validate_analytic': True}"
326 data-hotkey="q"
327 invisible="state != 'draft'"/>
328 <button
329 string="Send PRO-FORMA Invoice"
330 id="send_proforma"
331 name="action_quotation_send"
332 type="object"
333 context="{'proforma': True, 'validate_analytic': True}"
334 invisible="state == 'draft' or invoice_count &gt;= 1"
335 groups="sale.group_proforma_sales"/>
336 <button
337 string="Send"
338 id="quotation_send"
339 name="action_quotation_send"
340 type="object"
341 context="{'validate_analytic': True, 'check_document_layout': True}"
342 data-hotkey="g"
343 invisible="state not in ('sent', 'sale')"/>
344
345 <!-- allow to unlock locked orders even if setting is not enabled (e.g. orders synchronized from connectors) -->
346 <button
347 string="Unlock"
348 name="action_unlock"
349 type="object"
350 invisible="not locked"
351 groups="sales_team.group_sale_manager"/>
352 <button
353 string="Preview"
354 name="action_preview_sale_order"
355 type="object"
356 class="btn-secondary"/>
357 <button
358 string="Cancel"
359 name="action_cancel"
360 type="object"
361 confirm="Are you sure you want to cancel this order? This may affect related documents or processes."
362 data-hotkey="x"
363 invisible="state not in ['draft', 'sent', 'sale'] or not id or locked"/>
364 <button
365 string="Set to Quotation"
366 name="action_draft"
367 type="object"
368 data-hotkey="w"
369 invisible="state != 'cancel'"/>
370 <t groups="sale.group_auto_done_setting">
371 <button
372 string="Lock"
373 name="action_lock"
374 type="object"
375 help="If the sale is locked, you can not modify it anymore. However, you will still be able to invoice or deliver."
376 invisible="locked or state != 'sale'"
377 groups="sales_team.group_sale_manager"/>
378 </t>
379 <field name="state" widget="statusbar" statusbar_visible="draft,sent,sale"/>
380 </header>
381 <div class="alert alert-warning" role="alert" invisible="not sale_warning_text">
382 <field name="sale_warning_text" class="fw-bold"/>
383 </div>
384 <div
385 class="alert alert-warning"
386 role="alert"
387 invisible="partner_credit_warning == ''"
388 >
389 <field name="partner_credit_warning"/>
390 </div>
391 <div
392 class="alert alert-warning p-3 text-center"
393 role="alert"
394 invisible="state not in ['draft', 'sent'] or not has_archived_products"
395 >
396 <span>Warning: This quote contains archived product(s)</span>
397 </div>
398 <div
399 class="alert alert-warning w-100 d-flex align-items-center gap-1"
400 invisible="state != 'draft' or not duplicated_order_ids"
401 role="alert"
402 >
403 <span>Warning: this order might be a duplicate of</span>
404 <field
405 name="duplicated_order_ids"
406 widget="x2many_buttons"
407 string="Duplicated Documents"
408 />
409 </div>
410 <sheet>
411 <div class="oe_button_box" name="button_box">
412 <button name="action_view_invoice"
413 type="object"
414 class="oe_stat_button"
415 icon="fa-pencil-square-o"
416 invisible="invoice_count == 0">
417 <field name="invoice_count" widget="statinfo" string="Invoices"/>
418 </button>
419 </div>
420 <div class="badge rounded-pill text-bg-secondary float-end fs-6 border-0"
421 invisible="not locked">
422 <i class="fa fa-lock"/>
423 Locked
424 </div>
425 <div class="oe_title">
426 <h1>
427 <field name="name" readonly="1"/>
428 </h1>
429 </div>
430 <group name="sale_header">
431 <group name="partner_details">
432 <field name="partner_id"
433 widget="res_partner_many2one"
434 context="{'res_partner_search_mode': 'customer', 'show_address': 1, 'show_vat': True}"
435 placeholder="Type to find a customer..." readonly="state in ['cancel', 'sale']"/>
436 <field name="partner_invoice_id"
437 groups="account.group_delivery_invoice_address"
438 options="{'no_quick_create': True}"
439 context="{'default_type': 'invoice', 'show_address': False, 'show_vat': False, 'default_parent_id': partner_id}"
440 readonly="state == 'cancel' or locked"/>
441 <field name="partner_shipping_id"
442 groups="account.group_delivery_invoice_address"
443 options="{'no_quick_create': True}"
444 context="{'default_type': 'delivery', 'show_address': False, 'show_vat': False, 'default_parent_id': partner_id}"
445 readonly="state == 'cancel' or locked"/>
446 </group>
447 <group name="order_details">
448 <field name="validity_date" invisible="state == 'sale'" readonly="state in ['cancel', 'sale']"/>
449 <div class="o_td_label" groups="base.group_no_one" invisible="state in ['sale', 'cancel']">
450 <label for="date_order" string="Quotation Date"/>
451 </div>
452 <field
453 name="date_order"
454 nolabel="1"
455 groups="base.group_no_one"
456 invisible="state in ['sale', 'cancel']"
457 readonly="state in ['cancel', 'sale']"/>
458 <div class="o_td_label" invisible="state in ['draft', 'sent']">
459 <label for="date_order" string="Order Date"/>
460 </div>
461 <field
462 name="date_order"
463 nolabel="1"
464 invisible="state in ['draft', 'sent']"
465 readonly="state in ['cancel', 'sale']"/>
466 <label for="pricelist_id"
467 groups="product.group_product_pricelist"
468 invisible="not has_active_pricelist"/>
469 <div groups="product.group_product_pricelist"
470 class="o_row"
471 invisible="not has_active_pricelist">
472 <field
473 name="pricelist_id"
474 options="{'no_open': True, 'no_create': True}"
475 readonly="state in ['cancel', 'sale']"/>
476 <button name="action_update_prices" type="object"
477 string="Update Prices"
478 help="Recompute all prices based on this pricelist"
479 class="btn-link mb-1 px-0" icon="fa-refresh"
480 confirm="This will update the unit price of all products based on the new pricelist."
481 invisible="not show_update_pricelist or state in ['sale', 'cancel']"/>
482 </div>
483 <field name="currency_id" invisible="1"/>
484 <field
485 name="pricelist_id"
486 invisible="1"
487 readonly="state in ['cancel', 'sale']"
488 groups="!product.group_product_pricelist"/>
489 <field
490 name="payment_term_id"
491 placeholder="Immediate"
492 options="{'no_open': True, 'no_create': True}"/>
493 </group>
494 </group>
495 <notebook>
496 <page string="Order Lines" name="order_lines">
497 <field
498 name="order_line"
499 widget="sol_o2m"
500 mode="list,kanban"
501 readonly="state == 'cancel' or locked"
502 aggregated_fields="price_subtotal,price_total"
503 options="{'hide_composition': True, 'hide_prices': True, 'subsections': True}"
504 >
505 <form>
506 <field name="technical_price_unit" invisible="1"/>
507 <!--
508 We need the sequence field to be here for new lines to be added at the correct position.
509 TODO: at some point we want to fix this in the framework so that an invisible field is not required.
510 -->
511 <field name="sequence" invisible="1"/>
512 <!-- Display_type must be specified as non readonly (which would be the case with the default field added by ORM) -->
513 <field name="display_type" invisible="1"/>
514 <group>
515 <group invisible="display_type">
516 <label for="product_id"/>
517 <div class="d-flex align-items-baseline">
518 <span class="fa fa-exclamation-triangle text-warning me-1"
519 title="This product is archived"
520 invisible="state not in ['draft', 'sent'] or not is_product_archived"
521 />
522 <field name="product_id"
523 context="{
524 'default_uom_id': product_uom_id,
525 'partner_id': parent.partner_id,
526 }"
527 readonly="not product_updatable"
528 required="not display_type and not is_downpayment"
529 force_save="1"
530 widget="many2one_barcode"
531 />
532 </div>
533 <label for="product_uom_qty"/>
534 <div class="o_row" name="ordered_qty">
535 <field name="product_uom_qty"/>
536 <field
537 name="product_uom_id"
538 force_save="1"
539 groups="uom.group_uom"
540 class="oe_no_button"
541 widget="many2one_uom"
542 readonly="product_uom_readonly"
543 required="not display_type and not is_downpayment"/>
544 </div>
545 <label for="qty_delivered" string="Delivered" invisible="parent.state != 'sale'"/>
546 <div name="delivered_qty" invisible="parent.state != 'sale'">
547 <field name="qty_delivered" readonly="qty_delivered_method != 'manual'"/>
548 </div>
549 <label for="qty_invoiced" string="Invoiced" invisible="parent.state != 'sale'"/>
550 <div name="invoiced_qty" invisible="parent.state != 'sale'">
551 <field name="qty_invoiced"/>
552 </div>
553 <field name="price_unit"/>
554 <field
555 name="tax_ids"
556 widget="many2many_tax_tags"
557 options="{'no_create': True}"
558 context="{'search_view_ref': 'account.account_tax_view_search'}"
559 readonly="qty_invoiced &gt; 0"/>
560 <t groups="sale.group_discount_per_so_line">
561 <label for="discount"/>
562 <div name="discount">
563 <field name="discount" class="oe_inline"/> %
564 </div>
565 </t>
566 </group>
567 <group invisible="display_type">
568 <label for="customer_lead"/>
569 <div name="lead">
570 <field name="customer_lead" class="oe_inline" readonly="product_type != 'consu'"/> days
571 </div>
572 <field name="analytic_distribution" widget="analytic_distribution"
573 groups="analytic.group_analytic_accounting"
574 options="{'product_field': 'product_id', 'business_domain': 'sale_order'}"/>
575 </group>
576 </group>
577 <label for="name" string="Description" invisible="display_type"/>
578 <label for="name" string="Section Name (eg. Products, Services)" invisible="display_type != 'line_section'"/>
579 <label for="name" string="Subsection Name" invisible="display_type != 'line_subsection'"/>
580 <label for="name" string="Note" invisible="display_type != 'line_note'"/>
581 <field name="name"/>
582 <group>
583 <field
584 name="collapse_composition"
585 invisible="display_type not in ['line_section', 'line_subsection']"
586 readonly="1"
587 />
588 <field
589 name="collapse_prices"
590 invisible="display_type not in ['line_section', 'line_subsection']"
591 readonly="1"
592 />
593 </group>
594 <div name="invoice_lines" groups="base.group_no_one" invisible="display_type">
595 <label for="invoice_lines"/>
596 <field name="invoice_lines"/>
597 </div>
598 </form>
599 <list
600 string="Sales Order Lines"
601 editable="bottom"
602 limit="200"
603 decoration-warning="(state in ['draft', 'sent'] and is_product_archived) or sale_line_warn_msg"
604 >
605 <control>
606 <create name="add_product_control" string="Add a product"/>
607 <create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>
608 <create name="add_note_control" string="Add a note" context="{'default_display_type': 'line_note'}"/>
609 <button
610 string="Catalog"
611 name="action_add_from_catalog"
612 type="object"
613 class="px-4 btn-link"
614 context="{'order_id': parent.id}"/>
615 </control>
616
617 <!-- Non readonly invisible fields, must be specified manually, because fields added automatically by the ORM
618 are readonly, widgets fieldDependencies too -->
619 <field name="display_type" column_invisible="True"/>
620 <field name="product_custom_attribute_value_ids" column_invisible="1" >
621 <list>
622 <field name="custom_product_template_attribute_value_id" />
623 <field name="custom_value" />
624 </list>
625 </field>
626 <field name="product_no_variant_attribute_value_ids" column_invisible="1"/>
627 <field name="technical_price_unit" column_invisible="1"/>
628 <field name="linked_line_id" column_invisible="1"/>
629 <field name="combo_item_id" column_invisible="1"/>
630 <field name="selected_combo_items" column_invisible="1"/>
631 <field name="virtual_id" column_invisible="1"/>
632 <field name="linked_virtual_id" column_invisible="1"/>
633 <field name="collapse_composition" column_invisible="1"/>
634 <field name="collapse_prices" column_invisible="1"/>
635
636 <!-- Currency, needed for monetary widgets to display the currency symbol -->
637 <field name="currency_id" column_invisible="True"/>
638
639 <!-- Standard fields -->
640 <field name="sequence" invisible="combo_item_id" widget="handle"/>
641 <field
642 name="product_id"
643 string="Product Variant"
644 readonly="not product_updatable"
645 required="not display_type and not is_downpayment"
646 force_save="1"
647 context="{
648 'default_lst_price': price_unit,
649 'default_uom_id': product_uom_id,
650 'partner_id': parent.partner_id,
651 }"
652 options="{
653 'show_label_warning': True
654 }"
655 optional="hide"
656 widget="sol_product_many2one"/>
657 <field name="product_template_id"
658 string="Product"
659 readonly="id and not product_updatable"
660 required="not display_type and not is_downpayment"
661 context="{
662 'default_list_price': price_unit,
663 'default_uom_id': product_uom_id,
664 'partner_id': parent.partner_id,
665 }"
666 options="{
667 'show_label_warning': True
668 }"
669 optional="show"
670 widget="sol_product_many2one"
671 placeholder="Type to find a product..."/>
672 <field name="name" widget="sol_text" optional="show"/>
673 <field
674 name="analytic_distribution"
675 widget="analytic_distribution"
676 options="{
677 'product_field': 'product_id',
678 'business_domain': 'sale_order',
679 'amount_field': 'price_subtotal',
680 }"
681 optional="hide"
682 groups="analytic.group_analytic_accounting"/>
683 <field
684 name="product_uom_qty"
685 decoration-info="(not display_type and invoice_status == 'to invoice')"
686 decoration-bf="(not display_type and invoice_status == 'to invoice')"
687 readonly="is_downpayment"/>
688 <field
689 name="qty_delivered"
690 string="Delivered"
691 decoration-info="(not display_type and invoice_status == 'to invoice')"
692 decoration-bf="(not display_type and invoice_status == 'to invoice')"
693 column_invisible="parent.state != 'sale'"
694 readonly="qty_delivered_method != 'manual' or is_downpayment"
695 optional="show"/>
696 <field
697 name="qty_invoiced"
698 string="Invoiced"
699 decoration-info="(not display_type and invoice_status == 'to invoice')"
700 decoration-bf="(not display_type and invoice_status == 'to invoice')"
701 column_invisible="parent.state != 'sale'"
702 optional="show"/>
703 <field
704 name="product_uom_id"
705 force_save="1"
706 readonly="product_uom_readonly"
707 required="not display_type and not is_downpayment"
708 widget="many2one_uom"
709 groups="uom.group_uom"
710 options='{"no_open": True, "no_create": True}'
711 width="60px"
712 optional="show"/>
713 <field
714 name="customer_lead"
715 optional="hide"
716 width="80px"
717 readonly="parent.state not in ['draft', 'sent', 'sale'] or is_downpayment or product_type != 'consu'"/>
718 <field name="price_unit" readonly="qty_invoiced &gt; 0"/>
719 <field
720 name="tax_ids"
721 widget="many2many_tax_tags"
722 options="{'no_create': True}"
723 context="{'active_test': True}"
724 readonly="qty_invoiced &gt; 0 or is_downpayment"
725 optional="show"/>
726 <field
727 name="discount"
728 string="Disc.%"
729 groups="sale.group_discount_per_so_line"
730 width="50px"
731 optional="show"/>
732 <field
733 name="price_subtotal"
734 string="Amount"
735 column_invisible="parent.company_price_include == 'tax_included'"
736 invisible="is_downpayment"/>
737 <field
738 name="price_total"
739 string="Amount"
740 column_invisible="parent.company_price_include == 'tax_excluded'"
741 invisible="is_downpayment"/>
742 <!-- Optional amounts columns -->
743 <field
744 name="price_total"
745 string="Tax Incl."
746 column_invisible="parent.company_price_include == 'tax_included'"
747 invisible="is_downpayment"
748 optional="hide"
749 />
750 <field
751 name="price_subtotal"
752 string="Tax Excl."
753 column_invisible="parent.company_price_include == 'tax_excluded'"
754 invisible="is_downpayment"
755 optional="hide"
756 />
757 </list>
758 <kanban class="o_kanban_mobile">
759 <field name="display_type"/>
760 <field name="currency_id"/>
761 <control>
762 <create name="add_product_control" string="Add product"/>
763 <create name="add_section_control" string="Add section" context="{'default_display_type': 'line_section'}"/>
764 <create name="add_note_control" string="Add note" context="{'default_display_type': 'line_note'}"/>
765 <button
766 string="Catalog"
767 name="action_add_from_catalog"
768 type="object"
769 class="btn-secondary"
770 context="{'order_id': parent.id}"/>
771 </control>
772 <templates>
773 <t t-name="card" class="row g-0 ps-0 pe-0">
774 <t t-if="!record.display_type.raw_value">
775 <aside class="col-2 p-1">
776 <span t-att-title="record.product_id.value">
777 <field name="product_id" widget="image" options="{'preview_image': 'image_128', 'img_class': 'object-fit-contain w-100'}"/>
778 </span>
779 </aside>
780 <main class="col">
781 <div class="row">
782 <div class="col">
783 <span class="fa fa-exclamation-triangle text-warning me-1"
784 title="This product is archived"
785 invisible="state not in ['draft', 'sent'] or not is_product_archived"
786 />
787 <field name="product_id" class="fw-bold"/>
788 </div>
789 <div class="col-auto">
790 <field name="price_subtotal" class="fw-bolder float-end pe-1" widget="monetary"/>
791 </div>
792 </div>
793 <div class="text-muted">
794 Quantity:
795 <field name="product_uom_qty"/> <field name="product_uom_id"/>
796 </div>
797 <div class="text-muted">
798 Unit Price:
799 <field name="price_unit"/>
800 </div>
801 <t t-if="record.discount?.raw_value">
802 <div class="text-muted">
803 Discount:
804 <field name="discount"/>%
805 </div>
806 </t>
807 </main>
808 </t>
809 <t t-if="['line_section', 'line_subsection', 'line_note'].includes(record.display_type.raw_value)">
810 <div t-att-class="{
811 'fw-bolder': record.display_type.raw_value === 'line_section',
812 'fw-bold': record.display_type.raw_value === 'line_subsection',
813 'fst-italic': record.display_type.raw_value === 'line_note',
814 }">
815 <field name="name" />
816 </div>
817 </t>
818 </t>
819 </templates>
820 </kanban>
821 </field>
822 <div class="float-end d-flex d-print-none gap-1 mb-2"
823 name="so_button_below_order_lines">
824 <button
825 string="Discount"
826 name="action_open_discount_wizard"
827 type="object"
828 class="btn btn-secondary"
829 groups="sale.group_discount_per_so_line"
830 invisible="locked or state == 'cancel'"
831 />
832 <button
833 string="Discounts"
834 name="action_open_discount_wizard"
835 type="object"
836 class="btn btn-secondary"
837 groups="sale.group_discount_per_so_line"
838 disabled="1"
839 invisible="not (locked or state == 'cancel')"
840 />
841 </div>
842 <group name="note_group" col="6" class="mt-2 mt-md-0">
843 <group colspan="4" class="order-1 order-lg-0">
844 <field colspan="2" name="note" nolabel="1" placeholder="Terms and conditions..."/>
845 </group>
846 <group class="oe_subtotal_footer d-flex order-0 order-lg-1 flex-column gap-0 gap-sm-3" colspan="2" name="sale_total">
847 <field name="tax_totals" widget="account-tax-totals-field" nolabel="1" readonly="1"/>
848 </group>
849 </group>
850 </page>
851 <page string="Other Info" name="other_information">
852 <group>
853 <group name="sales_person" string="Sales">
854 <field name="user_id" widget="many2one_avatar_user"/>
855 <field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}" options="{'no_create': True}"/>
856 <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
857 <field name="require_signature"
858 readonly="state in ['cancel', 'sale']"/>
859 <label for="require_payment"/>
860 <div id="require_payment">
861 <field name="require_payment"
862 readonly="state in ['cancel', 'sale']"/>
863 <span class="mx-3" invisible="not require_payment">of</span>
864 <field name="prepayment_percent"
865 readonly="state in ['cancel', 'sale']"
866 invisible="not require_payment"
867 widget="percentage"
868 style="width: 3rem"/>
869 </div>
870 <field name="reference" readonly="1" invisible="not reference"/>
871 <field name="client_order_ref"/>
872 <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
873 </group>
874 <group name="sale_info" string="Invoicing">
875 <field name="show_update_fpos" invisible="1"/>
876 <label for="fiscal_position_id"/>
877 <div class="o_row">
878 <field name="fiscal_position_id" options="{'no_create': True}"/>
879 <button
880 string="Update Taxes"
881 name="action_update_taxes"
882 type="object"
883 help="Recompute all taxes based on this fiscal position"
884 class="btn-link mb-1 px-0"
885 icon="fa-refresh"
886 confirm="This will update all taxes based on the currently selected fiscal position."
887 invisible="not show_update_fpos or state in ['sale', 'cancel']"/>
888 </div>
889 <field name="preferred_payment_method_line_id"/>
890 <field name="partner_invoice_id" groups="!account.group_delivery_invoice_address" invisible="1"/>
891 <field name="journal_id" groups="base.group_no_one" readonly="invoice_count != 0 and state == 'sale'"/>
892 <field name="invoice_status" invisible="state != 'sale'" groups="base.group_no_one"/>
893 <!-- test_event_configurator -->
894 <field name="invoice_status" invisible="1" groups="!base.group_no_one"/>
895 </group>
896 <group name="sale_shipping" string="Shipping">
897 <label for="commitment_date" string="Delivery Date"/>
898 <div name="commitment_date_div" class="o_row">
899 <field name="commitment_date" readonly="state == 'cancel' or locked"/>
900 <span name="expected_date_span" invisible="not expected_date" class="text-muted">Expected: <field name="expected_date" class="oe_inline"/></span>
901 </div>
902 </group>
903 <group name="sale_reporting" string="Tracking">
904 <field name="origin"/>
905 <field name="campaign_id" options="{'create_name_field': 'title'}"/>
906 <field name="medium_id"/>
907 <field name="source_id"/>
908 </group>
909 </group>
910 </page>
911 <page groups="base.group_no_one" string="Customer Signature" name="customer_signature" invisible="not require_signature and not signed_by and not signature and not signed_on">
912 <group>
913 <field name="signed_by" readonly="signature"/>
914 <field name="signed_on" readonly="signature"/>
915 <field name="signature" widget="image"/>
916 </group>
917 </page>
918 </notebook>
919 </sheet>
920 <chatter/>
921 </form>
922 </field>
923 </record>
924
925 <record id="view_sales_order_filter" model="ir.ui.view">
926 <field name="name">sale.order.list.select</field>
927 <field name="model">sale.order</field>
928 <field name="priority" eval="15"/>
929 <field name="arch" type="xml">
930 <search string="Search Sales Order">
931 <field name="name"
932 string="Order"
933 filter_domain="['|', '|', ('name', 'ilike', self), ('client_order_ref', 'ilike', self), ('partner_id', 'child_of', self)]"/>
934 <field name="partner_id" operator="child_of"/>
935 <field name="user_id"/>
936 <field name="team_id" string="Sales Team"/>
937 <field name="order_line" string="Product" filter_domain="[('order_line.product_id', 'ilike', self)]"/>
938 <field name="activity_user_id" string="Activities of"/>
939 <field name="activity_type_id" string="Activity type"/>
940 <!-- We only allow to search on the following sale order line fields (product, name) because the other fields, such as price, quantity, ...
941 will not be searched as often, and if they need to be searched it's usually in the context of products
942 and then they can be searched from the page listing the sale order lines related to a product (from the product itself).
943 -->
944 <filter invisible="1" string="My Activities" name="filter_activities_my"
945 domain="[('activity_user_id', '=', uid)]"/>
946 <separator invisible="1"/>
947 <filter name="my_sale_orders_filter" string="My Orders" domain="[('user_id', '=', uid)]"/>
948 <filter invisible="1" string="Late Activities" name="activities_overdue"
949 domain="[('my_activity_date_deadline', '&lt;', 'today')]"
950 help="Show all records whose next activity date is past"/>
951 <filter invisible="1" string="Today Activities" name="activities_today"
952 domain="[('my_activity_date_deadline', '=', 'today')]"/>
953 <filter invisible="1" string="Future Activities" name="activities_upcoming_all"
954 domain="[('my_activity_date_deadline', '&gt;', 'today')]"/>
955 <group>
956 <filter name="salesperson" string="Salesperson" context="{'group_by': 'user_id'}"/>
957 <filter name="customer" string="Customer" context="{'group_by': 'partner_id'}"/>
958 <filter name="order_month" string="Order Date" context="{'group_by': 'date_order'}"/>
959 <filter name="preferred_payment_method_line_groupby" string="Payment Method" context="{'group_by': 'preferred_payment_method_line_id'}"/>
960 </group>
961 </search>
962 </field>
963 </record>
964
965 <record id="sale_order_view_search_inherit_quotation" model="ir.ui.view">
966 <field name="name">sale.order.search.inherit.quotation</field>
967 <field name="model">sale.order</field>
968 <field name="mode">primary</field>
969 <field name="inherit_id" ref="sale.view_sales_order_filter"/>
970 <field name="arch" type="xml">
971 <filter name="my_sale_orders_filter" position="replace">
972 <field name="campaign_id"/>
973 <separator/>
974 <filter string="My Quotations" name="my_quotation" domain="[('user_id', '=', uid)]"/>
975 <separator/>
976 <filter string="Quotations" name="draft" domain="[('state', 'in', ('draft', 'sent'))]"/>
977 <filter string="Sales Orders" name="sales" domain="[('state', '=', 'sale')]"/>
978 <separator/>
979 <filter string="Create Date" name="filter_create_date" date="create_date"/>
980 </filter>
981 </field>
982 </record>
983
984 <record id="sale_order_view_search_inherit_sale" model="ir.ui.view">
985 <field name="name">sale.order.search.inherit.sale</field>
986 <field name="model">sale.order</field>
987 <field name="mode">primary</field>
988 <field name="inherit_id" ref="sale.view_sales_order_filter"/>
989 <field name="arch" type="xml">
990 <filter name="my_sale_orders_filter" position="after">
991 <filter invisible="1" string="Sales Orders" name="sales" domain="[('state', '=', 'sale')]"/>
992 <separator/>
993 <filter string="To Invoice" name="to_invoice" domain="[('invoice_status','=','to invoice')]" />
994 <filter string="To Upsell" name="upselling" domain="[('invoice_status','=','upselling')]" />
995 <separator/>
996 <filter string="Order Date" name="order_date" date="date_order"/>
997 </filter>
998 </field>
999 </record>
1000
1001 <!-- ACTIONS (WINDOW) -->
1002
1003 <record id="action_orders" model="ir.actions.act_window">
1004 <field name="name">Sales Orders</field>
1005 <field name="res_model">sale.order</field>
1006 <field name="view_mode">list,kanban,form,calendar,pivot,graph,activity</field>
1007 <field name="search_view_id" ref="sale_order_view_search_inherit_sale"/>
1008 <field name="context">{'search_default_sales' : 1}</field>
1009 <field name="path">orders</field>
1010 <field name="help" type="html">
1011 <p class="o_view_nocontent_smiling_face">
1012 Create a new quotation, the first step of a new sale!
1013 </p><p>
1014 Once the quotation is confirmed, it becomes a sales order.<br/> You will be able to create an invoice and collect the payment.
1015 </p>
1016 </field>
1017 </record>
1018
1019 <record id="sale_order_action_view_order_tree" model="ir.actions.act_window.view">
1020 <field name="sequence" eval="1"/>
1021 <field name="view_mode">list</field>
1022 <field name="view_id" ref="sale.sale_order_list_upload"/>
1023 <field name="act_window_id" ref="action_orders"/>
1024 </record>
1025
1026 <record id="sale_order_action_view_order_kanban" model="ir.actions.act_window.view">
1027 <field name="sequence" eval="2"/>
1028 <field name="view_mode">kanban</field>
1029 <field name="view_id" ref="sale.sale_order_kanban_upload"/>
1030 <field name="act_window_id" ref="action_orders"/>
1031 </record>
1032
1033 <record id="sale_order_action_view_order_form" model="ir.actions.act_window.view">
1034 <field name="sequence" eval="3"/>
1035 <field name="view_mode">form</field>
1036 <field name="view_id" ref="sale.view_order_form"/>
1037 <field name="act_window_id" ref="action_orders"/>
1038 </record>
1039
1040 <record id="sale_order_action_view_order_calendar" model="ir.actions.act_window.view">
1041 <field name="sequence" eval="4"/>
1042 <field name="view_mode">calendar</field>
1043 <field name="view_id" ref="sale.view_sale_order_calendar"/>
1044 <field name="act_window_id" ref="action_orders"/>
1045 </record>
1046
1047 <record id="sale_order_action_view_order_pivot" model="ir.actions.act_window.view">
1048 <field name="sequence" eval="5"/>
1049 <field name="view_mode">pivot</field>
1050 <field name="view_id" ref="sale.view_sale_order_pivot"/>
1051 <field name="act_window_id" ref="action_orders"/>
1052 </record>
1053
1054 <record id="sale_order_action_view_order_graph" model="ir.actions.act_window.view">
1055 <field name="sequence" eval="6"/>
1056 <field name="view_mode">graph</field>
1057 <field name="view_id" ref="sale.view_sale_order_graph"/>
1058 <field name="act_window_id" ref="action_orders"/>
1059 </record>
1060
1061 <record id="action_quotations_with_onboarding" model="ir.actions.act_window">
1062 <field name="name">Quotations</field>
1063 <field name="path">sales</field>
1064 <field name="res_model">sale.order</field>
1065 <field name="view_id" ref="view_quotation_tree_with_onboarding"/>
1066 <field name="view_mode">list,kanban,form,calendar,pivot,graph,activity</field>
1067 <field name="search_view_id" ref="sale_order_view_search_inherit_quotation"/>
1068 <field name="context">{'search_default_my_quotation': 1}</field>
1069 <field name="help" type="html">
1070 <br/>
1071 <h2>
1072 Beat competitors with stunning quotations!
1073 </h2><p>
1074 Boost sales with online payments or signatures, upsells, and a great customer portal.
1075 </p>
1076 <a
1077 role="button"
1078 class="btn btn-secondary"
1079 href="https://www.odoo.com/documentation/latest/_downloads/312a470653db882b08ad72eb30cb4088/sample_quotation.pdf"
1080 target="_blank"
1081 >
1082 Check a sample. It's clean!
1083 </a>
1084 </field>
1085 </record>
1086
1087 <record id="sale_order_action_view_quotation_tree" model="ir.actions.act_window.view">
1088 <field name="sequence" eval="1"/>
1089 <field name="view_mode">list</field>
1090 <field name="view_id" ref="sale.view_quotation_tree_with_onboarding"/>
1091 <field name="act_window_id" ref="action_quotations_with_onboarding"/>
1092 </record>
1093
1094 <record id="sale_order_action_view_quotation_kanban" model="ir.actions.act_window.view">
1095 <field name="sequence" eval="2"/>
1096 <field name="view_mode">kanban</field>
1097 <field name="view_id" ref="sale.view_quotation_kanban_with_onboarding"/>
1098 <field name="act_window_id" ref="action_quotations_with_onboarding"/>
1099 </record>
1100
1101 <record id="action_quotations" model="ir.actions.act_window">
1102 <field name="name">Quotations</field>
1103 <field name="res_model">sale.order</field>
1104 <field name="view_mode">list,kanban,form,calendar,pivot,graph,activity</field>
1105 <field name="search_view_id" ref="sale_order_view_search_inherit_quotation"/>
1106 <field name="context">{'search_default_my_quotation': 1}</field>
1107 <field name="help" type="html">
1108 <p class="o_view_nocontent_smiling_face">
1109 Beat competitors with stunning quotations!
1110 </p><p>
1111 Boost sales with online payments or signatures, upsells, and a great customer portal.
1112 </p>
1113 <a
1114 role="button"
1115 class="btn btn-secondary"
1116 href="https://www.odoo.com/documentation/latest/_downloads/312a470653db882b08ad72eb30cb4088/sample_quotation.pdf"
1117 target="_blank"
1118 >
1119 Check a sample. It's clean!
1120 </a>
1121 </field>
1122 </record>
1123
1124 <record id="action_quotations_tree" model="ir.actions.act_window.view">
1125 <field name="sequence" eval="1"/>
1126 <field name="view_mode">list</field>
1127 <field name="view_id" ref="sale.view_quotation_tree"/>
1128 <field name="act_window_id" ref="action_quotations"/>
1129 </record>
1130
1131 <record id="action_quotations_kanban" model="ir.actions.act_window.view">
1132 <field name="sequence" eval="2"/>
1133 <field name="view_mode">kanban</field>
1134 <field name="view_id" ref="sale.view_sale_order_kanban"/>
1135 <field name="act_window_id" ref="action_quotations"/>
1136 </record>
1137
1138 <record id="sale_order_action_view_quotation_form" model="ir.actions.act_window.view">
1139 <field name="sequence" eval="3"/>
1140 <field name="view_mode">form</field>
1141 <field name="view_id" ref="sale.view_order_form"/>
1142 <field name="act_window_id" ref="action_quotations"/>
1143 </record>
1144
1145 <record id="sale_order_action_view_quotation_calendar" model="ir.actions.act_window.view">
1146 <field name="sequence" eval="4"/>
1147 <field name="view_mode">calendar</field>
1148 <field name="view_id" ref="sale.view_sale_order_calendar"/>
1149 <field name="act_window_id" ref="action_quotations"/>
1150 </record>
1151
1152 <record id="sale_order_action_view_quotation_pivot" model="ir.actions.act_window.view">
1153 <field name="sequence" eval="5"/>
1154 <field name="view_mode">pivot</field>
1155 <field name="view_id" ref="sale.view_sale_order_pivot"/>
1156 <field name="act_window_id" ref="action_quotations"/>
1157 </record>
1158
1159 <record id="sale_order_action_view_quotation_graph" model="ir.actions.act_window.view">
1160 <field name="sequence" eval="6"/>
1161 <field name="view_mode">graph</field>
1162 <field name="view_id" ref="sale.view_sale_order_graph"/>
1163 <field name="act_window_id" ref="action_quotations"/>
1164 </record>
1165
1166 <record id="action_orders_to_invoice" model="ir.actions.act_window">
1167 <field name="name">Orders to Invoice</field>
1168 <field name="res_model">sale.order</field>
1169 <field name="view_mode">list,form,calendar,graph,pivot,kanban,activity</field>
1170 <field name="context">{'create': False}</field>
1171 <field name="domain">[('invoice_status','=','to invoice')]</field>
1172 <field name="search_view_id" ref="view_sales_order_filter"/>
1173 <field name="help" type="html">
1174 <p class="o_view_nocontent_smiling_face">
1175 No orders to invoice found
1176 </p><p>
1177 You can select all orders and invoice them in batch,<br/>
1178 or check every order and invoice them one by one.
1179 </p>
1180 </field>
1181 </record>
1182
1183 <record id="action_orders_upselling" model="ir.actions.act_window">
1184 <field name="name">Orders to Upsell</field>
1185 <field name="res_model">sale.order</field>
1186 <field name="view_mode">list,form,calendar,graph,pivot,kanban,activity</field>
1187 <field name="domain">[('invoice_status','=','upselling')]</field>
1188 <field name="context">{'create': False}</field>
1189 <field name="search_view_id" ref="view_sales_order_filter"/>
1190 <field name="help" type="html">
1191 <p class="o_view_nocontent_smiling_face">
1192 No orders to upsell found.
1193 </p><p>
1194 An order is to upsell when delivered quantities are above initially
1195 ordered quantities, and the invoicing policy is based on ordered quantities.
1196 </p><p>
1197 As an example, if you sell pre-paid hours of services, Odoo recommends you
1198 to sell extra hours when all ordered hours have been consumed.
1199 </p>
1200 </field>
1201 </record>
1202
1203 <!-- ACTIONS (SERVER) -->
1204
1205 <record id="model_sale_order_action_quotation_sent" model="ir.actions.server">
1206 <field name="name">Mark Quotation as Sent</field>
1207 <field name="model_id" ref="sale.model_sale_order"/>
1208 <field name="binding_model_id" ref="sale.model_sale_order"/>
1209 <field name="binding_view_types">form,list,kanban</field>
1210 <field name="state">code</field>
1211 <field name="code">action = records.action_quotation_sent()</field>
1212 </record>
1213
1214 <record id="model_sale_order_action_share" model="ir.actions.server">
1215 <field name="name">Share</field>
1216 <field name="model_id" ref="sale.model_sale_order"/>
1217 <field name="binding_model_id" ref="sale.model_sale_order"/>
1218 <field name="binding_view_types">form</field>
1219 <field name="state">code</field>
1220 <field name="code">action = records.action_share()</field>
1221 </record>
1222
1223 <record id="model_sale_order_send_mail" model="ir.actions.server">
1224 <field name="name">Send an email</field>
1225 <field name="model_id" ref="sale.model_sale_order"/>
1226 <field name="sequence">1</field>
1227 <field name="binding_model_id" ref="sale.model_sale_order"/>
1228 <field name="binding_view_types">list,kanban,form</field>
1229 <field name="state">code</field>
1230 <field name="code">
1231 if records:
1232 action = records.with_context(hide_default_template=True).action_quotation_send()
1233 </field>
1234 </record>
1235
1236 <record id="mail_followers_edit_action_from_sale" model="ir.actions.act_window">
1237 <field name="name">Add/Remove Followers</field>
1238 <field name="res_model">mail.followers.edit</field>
1239 <field name="view_mode">form</field>
1240 <field name="target">new</field>
1241 <field name="context">{'default_res_model': 'sale.order', 'default_res_ids': active_ids}</field>
1242 <field name="binding_model_id" ref="sale.model_sale_order"/>
1243 <field name="binding_view_types">list,kanban</field>
1244 </record>
1245 </odoo>