|
| 1 | +<?xml version='1.0' encoding='utf-8' ?> |
| 2 | +<odoo> |
| 3 | + <!-- Sale order --> |
| 4 | + <record id="portal_sale_order_3" model="sale.order"> |
| 5 | + <field name="partner_id" ref="base.partner_demo_portal" /> |
| 6 | + <field name="partner_invoice_id" ref="base.partner_demo_portal" /> |
| 7 | + <field name="partner_shipping_id" ref="base.partner_demo_portal" /> |
| 8 | + <field name="user_id" ref="base.user_admin" /> |
| 9 | + <field name="payment_term_id" ref="account.account_payment_term_30days" /> |
| 10 | + <field name="pricelist_id" ref="product.list0" /> |
| 11 | + <field name="team_id" ref="sales_team.team_sales_department" /> |
| 12 | + <field |
| 13 | + name="date_order" |
| 14 | + eval="(DateTime.today() - relativedelta(months=1)).strftime('%Y-%m-%d %H:%M')" |
| 15 | + /> |
| 16 | + <field |
| 17 | + name="message_partner_ids" |
| 18 | + eval="[(4, ref('base.partner_demo_portal'))]" |
| 19 | + /> |
| 20 | + </record> |
| 21 | + |
| 22 | + <!-- Sale order lines --> |
| 23 | + <!-- Product pack: DETAILED - COMPONENTS --> |
| 24 | + <record id="portal_sale_order_line_section_1" model="sale.order.line"> |
| 25 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 26 | + <field name="name">Detailed Displayed Components Price</field> |
| 27 | + <field name="display_type">line_section</field> |
| 28 | + <field name="sequence">1</field> |
| 29 | + </record> |
| 30 | + <record id="portal_sale_order_line_6" model="sale.order.line"> |
| 31 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 32 | + <field |
| 33 | + name="product_id" |
| 34 | + ref="product_pack.product_pack_cpu_detailed_components" |
| 35 | + /> |
| 36 | + <field name="sequence">2</field> |
| 37 | + </record> |
| 38 | + <!-- Product pack: DETAILED - TOTALIZED --> |
| 39 | + <record id="portal_sale_order_line_section_2" model="sale.order.line"> |
| 40 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 41 | + <field name="name">Detailed Totalized Components Price</field> |
| 42 | + <field name="display_type">line_section</field> |
| 43 | + <field name="sequence">3</field> |
| 44 | + </record> |
| 45 | + <record id="portal_sale_order_line_7" model="sale.order.line"> |
| 46 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 47 | + <field |
| 48 | + name="product_id" |
| 49 | + ref="product_pack.product_pack_cpu_detailed_totalized" |
| 50 | + /> |
| 51 | + <field name="sequence">4</field> |
| 52 | + </record> |
| 53 | + <!-- Product pack: DETAILED - IGNORED --> |
| 54 | + <record id="portal_sale_order_line_section_3" model="sale.order.line"> |
| 55 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 56 | + <field name="name">Detailed Ignored Components Price</field> |
| 57 | + <field name="display_type">line_section</field> |
| 58 | + <field name="sequence">5</field> |
| 59 | + </record> |
| 60 | + <record id="portal_sale_order_line_8" model="sale.order.line"> |
| 61 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 62 | + <field name="product_id" ref="product_pack.product_pack_cpu_detailed_ignored" /> |
| 63 | + <field name="sequence">6</field> |
| 64 | + </record> |
| 65 | + <!-- Product pack: NON DETAILED --> |
| 66 | + <record id="portal_sale_order_line_section_4" model="sale.order.line"> |
| 67 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 68 | + <field name="name">Not Detailed - Totalized Components Price</field> |
| 69 | + <field name="display_type">line_section</field> |
| 70 | + <field name="sequence">7</field> |
| 71 | + </record> |
| 72 | + <record id="portal_sale_order_line_9" model="sale.order.line"> |
| 73 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 74 | + <field name="product_id" ref="product_pack.product_pack_cpu_non_detailed" /> |
| 75 | + <field name="sequence">8</field> |
| 76 | + </record> |
| 77 | + <!-- Components --> |
| 78 | + <record id="portal_sale_order_line_section_5" model="sale.order.line"> |
| 79 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 80 | + <field name="name">COMPONENTS</field> |
| 81 | + <field name="display_type">line_section</field> |
| 82 | + <field name="sequence">9</field> |
| 83 | + </record> |
| 84 | + <record id="portal_sale_order_line_components_1" model="sale.order.line"> |
| 85 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 86 | + <field name="product_id" ref="product.product_product_20" /> |
| 87 | + <field name="sequence">10</field> |
| 88 | + </record> |
| 89 | + |
| 90 | + <record id="portal_sale_order_line_components_2" model="sale.order.line"> |
| 91 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 92 | + <field name="product_id" ref="product.product_product_16" /> |
| 93 | + <field name="sequence">11</field> |
| 94 | + </record> |
| 95 | + |
| 96 | + <record id="portal_sale_order_components_3" model="sale.order.line"> |
| 97 | + <field name="order_id" ref="portal_sale_order_3" /> |
| 98 | + <field name="product_id" ref="product.product_product_24" /> |
| 99 | + <field name="sequence">12</field> |
| 100 | + </record> |
| 101 | + |
| 102 | + <function |
| 103 | + model="sale.order" |
| 104 | + name="action_confirm" |
| 105 | + eval="[[ |
| 106 | + ref('portal_sale_order_3'), |
| 107 | + ]]" |
| 108 | + /> |
| 109 | +</odoo> |
0 commit comments