Advertisement
mariomolinos

XML Odoo Sales Form studio

Aug 23rd, 2024
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 18.91 KB | None | 0 0
  1. <data>
  2.   <xpath expr="//form[1]/header[1]/button[@name='action_quotation_send'][3]" position="attributes">
  3.     <attribute name="invisible">1</attribute>
  4.   </xpath>
  5.   <xpath expr="//form[1]/header[1]/button[@name='action_quotation_send'][3]" position="after">
  6.     <button name="1664" type="action" class="btn-primary" icon="fa-refresh" string="Update Sale Order"/>
  7.   </xpath>
  8.   <xpath expr="//form[1]/header[1]/button[@name='action_quotation_send'][4]" position="attributes">
  9.     <attribute name="invisible">1</attribute>
  10.   </xpath>
  11.   <xpath expr="//button[@name='action_preview_sale_order']" position="attributes">
  12.     <attribute name="invisible">1</attribute>
  13.   </xpath>
  14.   <xpath expr="//button[@name='action_draft']" position="after">
  15.     <button name="action_lock" type="object" string="Lock" invisible="state not in ['sale']"/>
  16.     <button name="action_unlock" type="object" string="Unlock" invisible="state not in ['done']"/>
  17.   </xpath>
  18.   <xpath expr="//button[@name='action_view_purchase_orders']" position="after">
  19.     <button class="oe_stat_button" icon="fa-area-chart" type="action" name="1133">
  20.       <field widget="statinfo" name="x_order_id__sale_order_line_count" string="Order Lines"/>
  21.     </button>
  22.     <button class="oe_stat_button" icon="fa-database" type="action" name="1145">
  23.       <field widget="statinfo" name="x_x_sorder__x_sordersnapshot_count" string="Snapshots"/>
  24.     </button>
  25.     <!--<button class="oe_stat_button" icon="fa-balance-scale" type="action" name="1149">-->
  26.     <!--  <field widget="statinfo" name="x_x_control_order__x_order_control_count" string="Order Control"/>-->
  27.     <!--</button>-->
  28.     <button class="oe_stat_button" icon="fa-balance-scale" type="action" name="1663" string="Economic Control">
  29.       <!--<field widget="statinfo" name="x_x_studio_sales_order__x_economic_control_count" string="Economic Control"/>-->
  30.     </button>
  31.   </xpath>
  32.   <xpath expr="//field[@name='partner_id']" position="attributes">
  33.     <attribute name="domain">[["is_company","=",True]]</attribute>
  34.   </xpath>
  35.   <xpath expr="//field[@name='partner_id']" position="after">
  36.     <field name="x_studio_parent_company"/>
  37.   </xpath>
  38.   <xpath expr="//field[@name='payment_term_id']" position="after">
  39.     <field name="x_studio_last_update_scheduled_action" string="Last Update Scheduled Action" force_save="True" readonly="1" groups="base.group_erp_manager"/>
  40.   </xpath>
  41.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]" position="attributes">
  42.     <attribute name="limit">300</attribute>
  43.   </xpath>
  44.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='product_id']" position="attributes">
  45.     <attribute name="options">{"no_open":true,"no_create":true}</attribute>
  46.   </xpath>
  47.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='name']" position="after">
  48.     <field name="task_id" optional="show" column_invisible="1"/>
  49.   </xpath>
  50.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='product_uom_qty']" position="after">
  51.     <field name="x_sline_start" optional="show"/>
  52.     <field name="x_sline_end" optional="show"/>
  53.     <button string="incoherence" class="btn-danger" icon="fa-warning" invisible="x_studio_incoherence == False"/>
  54.     <field optional="show" name="x_studio_incoherence" string="Incoherence" column_invisible="1"/>
  55.   </xpath>
  56.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='qty_delivered']" position="after">
  57.     <field name="x_studio_control_cost_x" widget="percentage" optional="hide" string="AC %"/>
  58.   </xpath>
  59.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/widget[@name='qty_at_date_widget']" position="after">
  60.     <field name="x_studio_ev_cost_auto" widget="percentage" optional="hide" string="PV %"/>
  61.     <field name="x_studio_produced" widget="percentage" optional="hide" string="EV %"/>
  62.   </xpath>
  63.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='qty_invoiced']" position="after">
  64.     <field name="x_studio_invoiced_currency" optional="hide" string="Invoiced €"/>
  65.     <field name="x_sline_invoicedate" optional="show"/>
  66.   </xpath>
  67.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='price_unit']" position="after">
  68.     <field name="purchase_price" optional="show" column_invisible="1"/>
  69.     <field name="x_studio_fixed_cost" optional="show" string="Cost"/>
  70.     <field name="x_studio_control_cost_consumed" optional="hide"/>
  71.     <field name="x_studio_control_cost" optional="hide" string="C. Cost Sum"/>
  72.   </xpath>
  73.   <xpath expr="//form[1]/sheet[1]/notebook[1]/page[@name='order_lines']/field[@name='order_line']/tree[1]/field[@name='price_subtotal']" position="after">
  74.     <field name="x_sline_deviation" optional="show" widget="percentage"/>
  75.     <field name="x_studio_control_subtotal" optional="hide"/>
  76.   </xpath>
  77.   <xpath expr="//group[@name='sale_total']" position="after">
  78.     <group name="footer_wrap" class="" colspan="12" col="3">
  79.       <group string="Proposal" name="studio_group_611f8b" class="" colspan="1">
  80.         <field name="x_sorder_yoda" string="Yoda" colspan="2"/>
  81.         <field name="x_sorder_jedi" string="Jedi"/>
  82.         <field name="x_sorder_padawan" string="Padawan"/>
  83.         <field name="x_sorder_amountprop" string="Proposed Amount" widget="float"/>
  84.         <field name="x_sorder_analyticestimated" string="Estimated Cost" widget="float"/>
  85.         <field name="x_sorder_costprop" string="Proposed Cost" widget="float"/>
  86.         <field name="x_sorder_marginprop" string="Proposed Margin" widget="float"/>
  87.         <field name="x_sorder_marginproppc" string="Proposed Margin %"/>
  88.       </group>
  89.       <group col="1" colspan="1" name="center">
  90.         <group name="studio_group_analytic" string="Analytic" class="" colspan="1" col="2">
  91.           <div class="row" colspan="2" col="2" style="" name="studio_div_1eb5c0">
  92.             <label string="Analytic Account Credit" for="x_studio_analytic_account_credit" class="col-lg-9"/>
  93.             <field name="x_studio_analytic_account_credit" id="x_studio_analytic_account_credit" style="width:25%!important;text-align:right" widget="float"/>
  94.           </div>
  95.           <div class="row" colspan="2" col="2" style="" name="studio_div_90e023">
  96.             <label string="Analytic Account Debit" for="x_studio_analytic_account_debit" class="col-lg-9"/>
  97.             <field name="x_studio_analytic_account_debit" id="x_studio_analytic_account_debit" style="width:25%!important;text-align:right" widget="float"/>
  98.           </div>
  99.           <div class="row" colspan="2" col="2" style="" name="studio_div_107775">
  100.             <label string="Analytic Cost + Planning" for="x_studio_analytic_cost_and_forecasted" class="col-lg-9"/>
  101.             <field name="x_studio_analytic_cost_and_forecasted" id="x_studio_analytic_cost_and_forecasted" style="width:25%!important;text-align:right" widget="float" readonly="1"/>
  102.           </div>
  103.         </group>
  104.         <group name="studio_group_timesheets" string="Timesheets" class="" colspan="1" col="2">
  105.           <div class="row" colspan="2" name="studio_div_adfec9">
  106.             <label string="Hours in Planning App (Total)" for="x_sorder_assignment" class="col-lg-9"/>
  107.             <field name="x_sorder_assignment" id="x_sorder_assignment" style="width:25%!important;text-align:right" readonly="1"/>
  108.           </div>
  109.           <div class="row" colspan="2" name="studio_div_aa2494">
  110.             <label string="Hours in Sales Order (Total)" for="x_sorder_hoursplan" class="col-lg-9"/>
  111.             <field name="x_sorder_hoursplan" id="x_sorder_hoursplan" style="width:25%!important;text-align:right" readonly="1"/>
  112.           </div>
  113.           <div class="row" colspan="2" name="studio_div_af3159">
  114.             <label string="Hours in Planning App (To date)" for="x_sorder_assignment_todate" class="col-lg-9"/>
  115.             <field name="x_sorder_assignment_todate" id="x_sorder_assignment_todate" style="width:25%!important;text-align:right" readonly="1"/>
  116.           </div>
  117.           <div class="row" colspan="2" name="studio_div_e88f78">
  118.             <label string="Hours in Sales Order (To date)" for="x_sorder_hoursplan_todate" class="col-lg-9"/>
  119.             <field name="x_sorder_hoursplan_todate" id="x_sorder_hoursplan_todate" style="width:25%!important;text-align:right" readonly="1"/>
  120.           </div>
  121.           <div class="row" colspan="2" name="studio_div_ba6ad2">
  122.             <label string="Hours considered" for="x_sorder_hours_considered" class="col-lg-9"/>
  123.             <field name="x_sorder_hours_considered" id="x_sorder_hours_considered" style="width:25%!important;text-align:right" readonly="1"/>
  124.           </div>
  125.           <div class="row" colspan="2" name="studio_div_2ea52c">
  126.             <label string="Hours in timesheets" for="x_sorder_hours_timesheets" class="col-lg-9"/>
  127.             <field name="x_sorder_hours_timesheets" id="x_sorder_hours_timesheets" style="width:25%!important;text-align:right" readonly="1"/>
  128.           </div>
  129.           <div class="row" colspan="2" name="studio_div_1cf739">
  130.             <label string="Hours missing" for="x_sorder_hours_lost" class="col-lg-9"/>
  131.             <field name="x_sorder_hours_lost" id="x_sorder_hours_lost" style="width:25%!important;text-align:right" readonly="1" decoration-danger="x_sorder_hours_lost &gt; 40.0"/>
  132.           </div>
  133.           <field name="x_studio_leverage" id="x_studio_leverage" style="text-align:right;display: inline-block;" readonly="1"/>
  134.         </group>
  135.       </group>
  136.       <group col="1" colspan="1" name="studio_group_b4d2a7">
  137.         <group name="totals" string="Totals" colspan="1" col="2" style="">
  138.           <div class="row" colspan="2" name="studio_div_ffa951">
  139.             <label string="Planned Cost" for="x_sorder_cost" class="col-lg-9"/>
  140.             <field name="x_sorder_cost" id="x_sorder_cost" style="width:25%!important;text-align:right"/>
  141.           </div>
  142.           <div class="row" colspan="2" name="studio_div_1b0218">
  143.             <label string="Cost Real + Planned" for="x_sorder_costreal" class="col-lg-9"/>
  144.             <field name="x_sorder_costreal" id="x_sorder_costreal" style="width:25%!important;text-align:right"/>
  145.           </div>
  146.           <div class="row" colspan="2" name="studio_div_d66530">
  147.             <label string="Cost so far (Sales Order)" for="x_sorder_costsofar" class="col-lg-9"/>
  148.             <field name="x_sorder_costsofar" id="x_sorder_costsofar" style="width:25%!important;text-align:right"/>
  149.           </div>
  150.           <div class="row" colspan="2" name="studio_div_a693d6">
  151.             <label string="Cost so far (Analytic)" for="x_studio_analytic_cost" class="col-lg-9"/>
  152.             <field name="x_studio_analytic_cost" id="x_studio_analytic_cost" style="width:25%!important;text-align:right"/>
  153.           </div>
  154.           <div class="row" style="color:red" colspan="2" name="studio_div_a693d6" invisible="x_studio_incoherence == False">
  155.             <span style="font-weight:bold;">There are Analytic Lines entries after Project End Date</span>
  156.           </div>
  157.           <div class="row" colspan="2" name="studio_div_8dc119">
  158.             <label string="Planned Margin" for="x_studio_planned_margin" class="col-lg-9"/>
  159.             <field name="x_studio_planned_margin" id="x_studio_planned_margin" style="width:25%!important;text-align:right" widget="float"/>
  160.           </div>
  161.           <div class="row" colspan="2" name="studio_div_0ee0b3">
  162.             <label string="Real Margin" for="x_sorder_marginreal" class="col-lg-9"/>
  163.             <field name="x_sorder_marginreal" id="x_sorder_marginreal" style="width:25%!important;text-align:right"/>
  164.           </div>
  165.           <div class="row" colspan="2" name="studio_div_dfde12">
  166.             <label string="Planned Margin %" for="x_sorder_marginpc" class="col-lg-9"/>
  167.             <field name="x_sorder_marginpc" id="x_sorder_marginpc" style="width:25%!important;text-align:right"/>
  168.           </div>
  169.           <div class="row" colspan="2" name="studio_div_d2f451">
  170.             <label string="Real Margin %" for="x_sorder_marginrealpc" class="col-lg-9"/>
  171.             <field name="x_sorder_marginrealpc" id="x_sorder_marginrealpc" style="width:25%!important;text-align:right"/>
  172.           </div>
  173.           <div class="row" colspan="2" name="studio_div_45c358">
  174.             <label string="Deviation from Proposed Margin %" for="x_sorder_deviation" class="col-lg-9"/>
  175.             <field name="x_sorder_deviation" id="x_sorder_deviation" style="width:25%!important;text-align:right" decoration-danger="x_sorder_deviation &lt; -5.0" decoration-warning="x_sorder_deviation &gt; 5.0"/>
  176.           </div>
  177.           <div class="row" colspan="2" name="studio_div_0676cf">
  178.             <label string="Deviation from Planned Margin %" for="x_sorder_deviationplan" class="col-lg-9"/>
  179.             <field name="x_sorder_deviationplan" id="x_sorder_deviationplan" style="width:25%!important;text-align:right" decoration-danger="x_sorder_deviationplan &lt; -5.0" decoration-warning="x_sorder_deviationplan &gt; 5.0"/>
  180.           </div>
  181.         </group>
  182.         <group string="PMI" class="" name="studio_group_f66a02" colspan="1">
  183.           <div class="row" colspan="2" name="studio_div_68d0a3">
  184.             <label string="Planned Value" for="x_studio_planned_value" class="col-lg-9"/>
  185.             <field name="x_studio_planned_value" id="x_studio_planned_value" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  186.           </div>
  187.           <div class="row" colspan="2" name="studio_div_489c0c">
  188.             <label string="Actual Cost" for="x_studio_actual_cost" class="col-lg-9"/>
  189.             <field name="x_studio_actual_cost" id="x_studio_actual_cost" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  190.           </div>
  191.           <div class="row" colspan="2" name="studio_div_fcfffb">
  192.             <label string="Earned Value" for="x_studio_earned_value" class="col-lg-9"/>
  193.             <field name="x_studio_earned_value" id="x_studio_earned_value" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  194.           </div>
  195.           <div class="row" colspan="2" name="studio_div_d2aec2">
  196.             <label string="Earned Value Auto" for="x_studio_earned_value_auto" class="col-lg-9"/>
  197.             <field name="x_studio_earned_value_auto" id="x_studio_earned_value_auto" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  198.           </div>
  199.           <div class="row" colspan="2" name="studio_div_070588">
  200.             <label string="Planned Value %" for="x_studio_planned_value_per" class="col-lg-9"/>
  201.             <field name="x_studio_planned_value_per" id="x_studio_planned_value_per" widget="percentage" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  202.           </div>
  203.           <div class="row" colspan="2" name="studio_div_15810d">
  204.             <label string="Actual Cost %" for="x_studio_actual_cost_per" class="col-lg-9"/>
  205.             <field name="x_studio_actual_cost_per" id="x_studio_actual_cost_per" widget="percentage" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  206.           </div>
  207.           <div class="row" colspan="2" name="studio_div_d2aec2">
  208.             <label string="Earned Value %" for="x_studio_earned_value_per" class="col-lg-9"/>
  209.             <field name="x_studio_earned_value_per" id="x_studio_earned_value_per" widget="percentage" style="width:25%!important;text-align:right" force_save="True" readonly="1"/>
  210.           </div>
  211.           <div class="row" colspan="2" name="studio_div_d2aec2">
  212.             <label string="Total Invoiced" for="x_studio_total_invoiced" class="col-lg-9"/>
  213.             <field name="x_studio_total_invoiced" id="x_studio_total_invoiced" style="width:25%!important;text-align:right" force_save="True" readonly="1" help="The invoiced amount without tax"/>
  214.           </div>
  215.           <div class="row" colspan="2" name="studio_div_d2aec2">
  216.             <label string="Accrued Value" for="x_studio_accrued_value" class="col-lg-9"/>
  217.             <field name="x_studio_accrued_value" id="x_studio_accrued_value" style="width:25%!important;text-align:right" force_save="True" readonly="1" help="The Earned Value that has not been invoiced to the customer"/>
  218.           </div>
  219.           <div class="row" colspan="2" name="studio_div_d2aec2">
  220.             <label string="Total due" for="x_studio_total_due" class="col-lg-9"/>
  221.             <field name="x_studio_total_due" id="x_studio_total_due" style="width:25%!important;text-align:right" force_save="True" readonly="1" help="The invoiced amount without tax that is due"/>
  222.           </div>
  223.         </group>
  224.       </group>
  225.     </group>
  226.   </xpath>
  227.   <xpath expr="//group[@name='sale_shipping']" position="attributes">
  228.     <attribute name="invisible">1</attribute>
  229.   </xpath>
  230.   <xpath expr="//field[@name='opportunity_id']" position="after">
  231.     <field name="x_studio_industry_1"/>
  232.     <field name="x_studio_company_role"/>
  233.   </xpath>
  234.   <xpath expr="//field[@name='campaign_id']" position="after">
  235.     <field name="x_studio_source_mod"/>
  236.   </xpath>
  237.   <xpath expr="//field[@name='medium_id']" position="attributes">
  238.     <attribute name="invisible">True</attribute>
  239.   </xpath>
  240.   <xpath expr="//field[@name='source_id']" position="attributes">
  241.     <attribute name="invisible">True</attribute>
  242.   </xpath>
  243.   <xpath expr="//form[1]/sheet[1]/notebook[1]" position="inside">
  244.     <page string="Project Management" name="studio_page_AyK62">
  245.       <group name="studio_group_AyK62">
  246.         <group name="studio_group_AyK62_left">
  247.           <field name="x_practice" widget="selection"/>
  248.           <field name="x_studio_practice_manager"/>
  249.           <field name="x_sorder_pm"/>
  250.           <field name="x_studio_authorized" widget="many2many_tags"/>
  251.           <field name="x_sorder_start"/>
  252.           <field name="x_sorder_end"/>
  253.           <field name="x_studio_field_yIjmK"/>
  254.           <field name="x_studio_finished"/>
  255.           <field name="x_first_timesheet" readonly="1"/>
  256.           <field name="x_last_timesheet" readonly="1"/>
  257.           <field name="x_studio_incoherence" string="Incoherence"/>
  258.         </group>
  259.         <group name="studio_group_AyK62_right">
  260.         </group>
  261.       </group>
  262.     </page>
  263.     <page string="Terms &amp; Conditions" name="studio_page_rVlCT">
  264.       <group name="studio_group_rVlCT" string="Custom Terms" placeholder="Custom Terms">
  265.         <group name="studio_group_rVlCT_left"/>
  266.         <group name="studio_group_rVlCT_right"/>
  267.         <field name="x_sorder_customterms" nolabel="1" style="width:900px"/>
  268.       </group>
  269.       <group name="studio_group_XZRPc" string="Terms and Conditions">
  270.         <field name="note" nolabel="1" style="width:900px"/>
  271.       </group>
  272.     </page>
  273.   </xpath>
  274. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement