lunch_location_views.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="lunch_location_view_search" model="ir.ui.view">
  4. <field name="name">lunch.location.view.search</field>
  5. <field name="model">lunch.location</field>
  6. <field name="arch" type="xml">
  7. <search>
  8. <field name="name"/>
  9. <field name="address"/>
  10. </search>
  11. </field>
  12. </record>
  13. <record id="lunch_location_form_view" model="ir.ui.view">
  14. <field name="name">lunch.location.view.form</field>
  15. <field name="model">lunch.location</field>
  16. <field name="arch" type="xml">
  17. <form>
  18. <sheet>
  19. <group>
  20. <group>
  21. <field name="name"/>
  22. <field name="address"/>
  23. <field name="company_id" groups="base.group_multi_company"/>
  24. </group>
  25. </group>
  26. </sheet>
  27. </form>
  28. </field>
  29. </record>
  30. <record id="lunch_location_tree_view" model="ir.ui.view">
  31. <field name="name">lunch.location.view.form</field>
  32. <field name="model">lunch.location</field>
  33. <field name="arch" type="xml">
  34. <tree editable="bottom">
  35. <field name="name"/>
  36. <field name="address"/>
  37. <field name="company_id" groups="base.group_multi_company"/>
  38. </tree>
  39. </field>
  40. </record>
  41. <record id="lunch_location_kanban_view" model="ir.ui.view">
  42. <field name="name">lunch.location.view.kanban</field>
  43. <field name="model">lunch.location</field>
  44. <field name="arch" type="xml">
  45. <kanban class="o_kanban_mobile">
  46. <templates>
  47. <t t-name="kanban-box">
  48. <div class="oe_kanban_card oe_kanban_global_click">
  49. <div class="oe_kanban_content">
  50. <div class="o_kanban_record_top">
  51. <div class="o_kanban_record_headings">
  52. <strong class="o_kanban_record_title"><field name="name"/></strong>
  53. </div>
  54. </div>
  55. <div class="o_kanban_record_body">
  56. <field name="company_id" groups="base.group_multi_company"/><br/>
  57. <field name="address"/>
  58. </div>
  59. </div>
  60. </div>
  61. </t>
  62. </templates>
  63. </kanban>
  64. </field>
  65. </record>
  66. <record id="lunch_location_action" model="ir.actions.act_window">
  67. <field name="name">Lunch Locations</field>
  68. <field name="res_model">lunch.location</field>
  69. <field name="view_mode">tree,form,kanban</field>
  70. <field name="search_view_id" ref="lunch_location_view_search"/>
  71. <field name="help" type="html">
  72. <!-- TODO: better help message -->
  73. <p class="o_view_nocontent_smiling_face">
  74. To see some locations, create one using the create button
  75. </p>
  76. </field>
  77. </record>
  78. </odoo>