hunk.code_window:             <t t-set="domainClass" t-value="'o_stock_reports_domain_line_1'"/>
           </t>
           <tr t-att-data-type="l.type" t-att-data-unfold="l.unfoldable" t-att-data-parent_id="l.parent_id" t-att-data-id="l.id"  t-att-data-model_id="l.model_id" t-att-data-model="l.model" t-att-class="trclass">
               <t t-if="l.unfoldable == true"><t t-set="tdclass" t-value="'o_stock_reports_unfoldable'" /></t>
               <t t-set="column" t-value="0" />
               <t t-foreach="l.columns" t-as="c">
                   <t t-set="column" t-value="column + 1" />
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:         <t t-set="span_color" t-value="'color: #666666;'"/>
           <t t-if="l.usage == 'in'"><t t-set="span_color" t-value="'color: #3c763d;'"/></t>
           <t t-if="l.usage == 'out'"><t t-set="span_color" t-value="'color: #a94442;'"/></t>
  
hunk.file_path: addons/stock/static/src/xml/stock_traceability_report_line.xml
hunk.type: add
file: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
  
      <record id="sale.group_sale_layout" model="res.groups">
          <field name="name">Personalize sales order and invoice report</field>
          <field name="category_id" ref="base.module_category_hidden"/>
      </record>
  
      <record id="group_delivery_invoice_address" model="res.groups">
          <field name="name">Addresses in Sales Orders</field>
          <field name="category_id" ref="base.module_category_hidden"/>
      </record>
  
      <record id="group_show_price_subtotal" model="res.groups">
          <field name="name">Tax display B2B</field>
          <field name="category_id" ref="base.module_category_hidden"/>
          <field name="comment">Show line subtotals without taxes (B2B)</field>
      </record>
  
      <record id="group_show_price_total" model="res.groups">
          <field name="name">Tax display B2C</field>
          <field name="category_id" ref="base.module_category_hidden"/>
          <field name="comment">Show line subtotals with taxes included (B2C)</field>
      </record>
  
      <record model="res.groups" id="base.group_public">
          <field name="implied_ids" eval="[(4, ref('sale.group_show_price_subtotal'))]"/>
      </record>
  
      <record model="res.groups" id="base.group_portal">
          <field name="implied_ids" eval="[(4, ref('sale.group_show_price_subtotal'))]"/>
      </record>
  
      <record model="res.groups" id="base.group_user">
          <field name="implied_ids" eval="[(4, ref('sale.group_show_price_subtotal'))]"/>
      </record>
  
      <record id="group_discount_per_so_line" model="res.groups">
          <field name="name">Discount on lines</field>
          <field name="category_id" ref="base.module_category_hidden"/>
      </record>
  
      <record id="group_warning_sale" model="res.groups">
          <field name="name">A warning can be set on a product or a customer (Sale)</field>
          <field name="category_id" ref="base.module_category_hidden"/>
      </record>
  
      <record id="group_proforma_sales" model="res.groups">
          <field name="name">Pro-forma Invoices</field>
          <field name="category_id" ref="base.module_category_hidden"/>
      </record>
  
      <record id="group_analytic_accounting" model="res.groups">
          <field name="name">Analytic Accounting for Sales</field>
          <field name="category_id" ref="base.module_category_hidden"/>
          <field name="implied_ids" eval="[(4, ref('analytic.group_analytic_accounting'))]"/>
      </record>
  
      <record model="res.users" id="base.user_root">
          <field eval="[(4,ref('base.group_partner_manager'))]" name="groups_id"/>
      </record>
  
  <data noupdate="1">
      <!-- Multi - Company Rules -->
  
      <record model="ir.rule" id="sale_order_comp_rule">
          <field name="name">Sales Order multi-company</field>
          <field name="model_id" ref="model_sale_order"/>
          <field name="global" eval="True"/>
          <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
      </record>
  
      <record model="ir.rule" id="sale_order_line_comp_rule">
          <field name="name">Sales Order Line multi-company</field>
          <field name="model_id" ref="model_sale_order_line"/>
          <field name="global" eval="True"/>
          <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
      </record>
  
      <record model="ir.rule" id="sale_order_report_comp_rule">
          <field name="name">Sales Order Analysis multi-company</field>
          <field name="model_id" ref="model_sale_report"/>
          <field name="global" eval="True"/>
          <field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
      </record>
  
      <!-- Portal Access Rules -->
      <record id="sale_order_rule_portal" model="ir.rule">
          <field name="name">Portal Personal Quotations/Sales Orders</field>
          <field name="model_id" ref="sale.model_sale_order"/>
          <field name="domain_force">[('message_partner_ids','child_of',[user.commercial_partner_id.id])]</field>
          <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
          <field name="perm_unlink" eval="True"/>
          <field name="perm_write" eval="True"/>
          <field name="perm_read" eval="True"/>
          <field name="perm_create" eval="False"/>
      </record>
  
      <record id="sale_order_line_rule_portal" model="ir.rule">
          <field name="name">Portal Sales Orders Line</field>
          <field name="model_id" ref="sale.model_sale_order_line"/>
          <field name="domain_force">[('order_id.message_partner_ids','child_of',[user.commercial_partner_id.id])]</field>
          <field name="groups" eval="[(4, ref('base.group_portal'))]"/>
      </record>
  
      <!-- Multi - Salesmen sales order assignation rules -->
  
      <record id="sale_order_personal_rule" model="ir.rule">
          <field name="name">Personal Orders</field>
          <field ref="model_sale_order" name="model_id"/>
          <field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
      </record>
      <record id="sale_order_see_all" model="ir.rule">
          <field name="name">All Orders</field>
          <field ref="model_sale_order" name="model_id"/>
          <field name="domain_force">[(1,'=',1)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>
      </record>
  
      <record id="sale_order_report_personal_rule" model="ir.rule">
          <field name="name">Personal Orders Analysis</field>
          <field ref="model_sale_report" name="model_id"/>
          <field name="domain_force">['|',('user_id','=',user.id),('user_id','=',False)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
      </record>
  
      <record id="sale_order_report_see_all" model="ir.rule">
          <field name="name">All Orders Analysis</field>
          <field ref="model_sale_report" name="model_id"/>
          <field name="domain_force">[(1,'=',1)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>
      </record>
  
      <record id="sale_order_line_personal_rule" model="ir.rule">
          <field name="name">Personal Order Lines</field>
          <field ref="model_sale_order_line" name="model_id"/>
          <field name="domain_force">['|',('order_id.user_id','=',user.id),('order_id.user_id','=',False)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
      </record>
  
      <record id="sale_order_line_see_all" model="ir.rule">
          <field name="name">All Orders Lines</field>
          <field ref="model_sale_order_line" name="model_id"/>
          <field name="domain_force">[(1,'=',1)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>
      </record>
  
      <record id="account_invoice_report_rule_see_personal" model="ir.rule">
          <field name="name">Personal Invoices Analysis</field>
          <field name="model_id" ref="model_account_invoice_report"/>
          <field name="domain_force">['|', ('user_id', '=', user.id), ('user_id', '=', False)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
      </record>
  
      <record id="account_invoice_report_rule_see_all" model="ir.rule">
          <field name="name">All Invoices Analysis</field>
          <field name="model_id" ref="model_account_invoice_report"/>
          <field name="domain_force">[(1, '=', 1)]</field>
          <field name="groups" eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]"/>
      </record>
  </data>
  </odoo>
  