fleet_vehicle_cost_views.xml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="fleet_vehicle_log_contract_view_form_inherit_hr" model="ir.ui.view">
  4. <field name="name">fleet.vehicle.log.contract.form.inherit.hr</field>
  5. <field name="model">fleet.vehicle.log.contract</field>
  6. <field name="inherit_id" ref="fleet.fleet_vehicle_log_contract_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='purchaser_id']" position="after">
  9. <field name="purchaser_employee_id" string="Driver" invisible="1"/>
  10. </xpath>
  11. </field>
  12. </record>
  13. <record id="fleet_vehicle_log_contract_view_tree_inherit_hr" model="ir.ui.view">
  14. <field name="name">fleet.vehicle.log.contract.tree.inherit.hr</field>
  15. <field name="model">fleet.vehicle.log.contract</field>
  16. <field name="inherit_id" ref="fleet.fleet_vehicle_log_contract_view_tree"/>
  17. <field name="arch" type="xml">
  18. <xpath expr="//field[@name='purchaser_id']" position="after">
  19. <field name="purchaser_employee_id" optional="hide" widget="many2one_avatar_employee"/>
  20. </xpath>
  21. </field>
  22. </record>
  23. <record id="fleet_vehicle_log_contract_view_search_inherit_hr" model="ir.ui.view">
  24. <field name="name">fleet.vehicle.log.contract.search.inherit.hr</field>
  25. <field name="model">fleet.vehicle.log.contract</field>
  26. <field name="inherit_id" ref="fleet.fleet_vehicle_log_contract_view_search"/>
  27. <field name="arch" type="xml">
  28. <xpath expr="//field[@name='purchaser_id']" position="after">
  29. <field name="purchaser_employee_id" string="Employee"
  30. filter_domain="[('purchaser_employee_id','child_of', self)]"/>
  31. </xpath>
  32. </field>
  33. </record>
  34. <record id="fleet_vehicle_log_services_view_form_inherit_hr" model="ir.ui.view">
  35. <field name="name">fleet.vehicle.log.contract.form.inherit.hr</field>
  36. <field name="model">fleet.vehicle.log.services</field>
  37. <field name="inherit_id" ref="fleet.fleet_vehicle_log_services_view_form"/>
  38. <field name="arch" type="xml">
  39. <xpath expr="//field[@name='purchaser_id']" position="after">
  40. <field name="purchaser_employee_id" string="Driver (Employee)" invisible="1"/>
  41. </xpath>
  42. </field>
  43. </record>
  44. <record id="fleet_vehicle_log_services_view_tree_inherit_hr" model="ir.ui.view">
  45. <field name="name">fleet.vehicle.log.services.tree.inherit.hr</field>
  46. <field name="model">fleet.vehicle.log.services</field>
  47. <field name="inherit_id" ref="fleet.fleet_vehicle_log_services_view_tree"/>
  48. <field name="arch" type="xml">
  49. <xpath expr="//field[@name='purchaser_id']" position="after">
  50. <field name="purchaser_employee_id" readonly="1" widget="many2one_avatar" optional="hide"/>
  51. </xpath>
  52. </field>
  53. </record>
  54. <record id="fleet_vehicle_log_services_view_kanban_inherit_hr" model="ir.ui.view">
  55. <field name="name">fleet.vehicle.log.services.kanban.inherit.hr</field>
  56. <field name="model">fleet.vehicle.log.services</field>
  57. <field name="inherit_id" ref="fleet.fleet_vehicle_log_services_view_kanban"/>
  58. <field name="arch" type="xml">
  59. <xpath expr="//div/field[@name='purchaser_id']" position="after">
  60. <field name="purchaser_employee_id"/>
  61. </xpath>
  62. </field>
  63. </record>
  64. </odoo>