summaryrefslogtreecommitdiff
path: root/addons/lunch/views/lunch_location_views.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/lunch/views/lunch_location_views.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/lunch/views/lunch_location_views.xml')
-rw-r--r--addons/lunch/views/lunch_location_views.xml82
1 files changed, 82 insertions, 0 deletions
diff --git a/addons/lunch/views/lunch_location_views.xml b/addons/lunch/views/lunch_location_views.xml
new file mode 100644
index 00000000..1a921732
--- /dev/null
+++ b/addons/lunch/views/lunch_location_views.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="lunch_location_view_search" model="ir.ui.view">
+ <field name="name">lunch.location.view.search</field>
+ <field name="model">lunch.location</field>
+ <field name="arch" type="xml">
+ <search>
+ <field name="name"/>
+ <field name="address"/>
+ </search>
+ </field>
+ </record>
+
+ <record id="lunch_location_form_view" model="ir.ui.view">
+ <field name="name">lunch.location.view.form</field>
+ <field name="model">lunch.location</field>
+ <field name="arch" type="xml">
+ <form>
+ <sheet>
+ <group>
+ <group>
+ <field name="name"/>
+ <field name="address"/>
+ <field name="company_id" groups="base.group_multi_company"/>
+ </group>
+ </group>
+ </sheet>
+ </form>
+ </field>
+ </record>
+
+ <record id="lunch_location_tree_view" model="ir.ui.view">
+ <field name="name">lunch.location.view.form</field>
+ <field name="model">lunch.location</field>
+ <field name="arch" type="xml">
+ <tree editable="bottom">
+ <field name="name"/>
+ <field name="address"/>
+ <field name="company_id" groups="base.group_multi_company"/>
+ </tree>
+ </field>
+ </record>
+
+ <record id="lunch_location_kanban_view" model="ir.ui.view">
+ <field name="name">lunch.location.view.kanban</field>
+ <field name="model">lunch.location</field>
+ <field name="arch" type="xml">
+ <kanban class="o_kanban_mobile">
+ <templates>
+ <t t-name="kanban-box">
+ <div class="oe_kanban_card oe_kanban_global_click">
+ <div class="oe_kanban_content">
+ <div class="o_kanban_record_top">
+ <div class="o_kanban_record_headings">
+ <strong class="o_kanban_record_title"><field name="name"/></strong>
+ </div>
+ </div>
+ <div class="o_kanban_record_body">
+ <field name="company_id" groups="base.group_multi_company"/><br/>
+ <field name="address"/>
+ </div>
+ </div>
+ </div>
+ </t>
+ </templates>
+ </kanban>
+ </field>
+ </record>
+
+ <record id="lunch_location_action" model="ir.actions.act_window">
+ <field name="name">Lunch Locations</field>
+ <field name="res_model">lunch.location</field>
+ <field name="view_mode">tree,form,kanban</field>
+ <field name="search_view_id" ref="lunch_location_view_search"/>
+ <field name="help" type="html">
+ <!-- TODO: better help message -->
+ <p class="o_view_nocontent_smiling_face">
+ To see some locations, create one using the create button
+ </p>
+ </field>
+ </record>
+</odoo>