123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- actions -->
-
- <act_window
- id="action_open_project_service_task"
- name="Clientes"
- res_model="project.service.task"
- view_type="form"
- view_mode="tree,form"
- domain="[('project_id', '=', active_id)]"/>
- <act_window
- id="action_open_single_project_service_task"
- name="Clientes"
- res_model="project.service.task"
- view_type="form"
- view_mode="tree,form"
- target="current"
- domain="[('project_service_task_ids', 'in', active_id)]"/>
- <!-- Form view -->
- <record model="ir.ui.view" id="project_service_form">
- <field name="name">project.service.form</field>
- <field name="model">project.service</field>
- <field name="arch" type="xml">
- <form string="Proyectos">
- <sheet>
- <field name="image_medium" widget='image' class="oe_avatar oe_left"/>
- <div class="oe_title">
- <h1>
- <field name="name"/>
- </h1>
- </div>
- <div class="oe_right oe_button_box">
- <button
- class="oe_inline oe_stat_button"
- type="action"
- name="%(action_open_project_service_task)d"
- icon="far fa-user">
- <field name="project_service_task_count" string="Clientes" widget="statinfo" />
- </button>
- </div>
- <notebook>
- <page string="Configuración">
- <group>
- <group>
- <field name="active"/>
- </group>
- <group>
-
- </group>
- </group>
- </page>
- </notebook>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Kanban view -->
- <record model="ir.ui.view" id="project_service_kanban">
- <field name="name">project.service.kanban</field>
- <field name="model">project.service</field>
- <field name="arch" type="xml">
- <kanban class="oe_background_grey">
- <field name="name"/>
- <field name="color"/>
- <field name="project_service_task_count"/>
- <field name="project_service_task_ids"/>
- <templates>
- <t t-name="kanban-box" class="project-card">
- <div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_project oe_kanban_global_click project-card">
- <div class="oe_dropdown_toggle oe_dropdown_kanban" groups="base.group_user">
- <span class="oe_e">í</span>
- <ul class="oe_dropdown_menu">
- <t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Configurar</a></li></t>
- <li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
- </ul>
- </div>
- <div class="oe_kanban_content">
- <h4 class="text-center"><strong><field name="name"/></strong></h4>
- <div class="o_kanban_image text-center image_kanban_project card-image-box">
- <img t-att-src="kanban_image('project.service', 'image_medium', record.id.value)" style="width:80%;"/>
- </div>
- </div>
- <div class="oe_kanban_project_list">
- <div class="o_project_kanban_box">
- <a name="%(action_open_project_service_task)d" type="action" style="margin-right: 10px">
- <t t-raw="record.project_service_task_count.raw_value"/> Tareas
- </a>
- </div>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- <!-- tree view -->
- <record model="ir.ui.view" id="project_service_tree">
- <field name="name">project.service.tree</field>
- <field name="model">project.service</field>
- <field name="arch" type="xml">
- <tree string="Panel de control">
- <field name="name" string="Nombre"/>
- </tree>
- </field>
- </record>
- <!-- action -->
- <record model="ir.actions.act_window" id="project_service_action">
- <field name="name">Panel de control</field>
- <field name="res_model">project.service</field>
- <field name="view_type">form</field>
- <field name="domain">[]</field>
- <field name="view_mode">kanban,tree,form</field>
- </record>
-
- <!-- menus -->
- <menuitem id="project_main_menu" name="Salon e Spa"/>
- <menuitem name="Salon e Spa" parent="project_main_menu" id="project_service_parent_menu" sequence="1"/>
- <menuitem name="Panel de control" parent="project_service_parent_menu" id="project_service_all_menu" sequence="1" action="project_service_action"/>
- <menuitem name="Configuracion" parent="project_main_menu" id="project_config_parent_menu" sequence="5"/>
- </data>
- </openerp>
|