123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <menuitem id="menu_slider_config" name="Slider Configuration" parent="base.menu_base_partner" sequence="40"/>
- <!-- Product Category Slider -->
- <!-- Product Category Slider Form View-->
- <record id="prod_cat_slider_form_view" model="ir.ui.view">
- <field name="name">product.category.slider.form.view</field>
- <field name="model">product.category.slider.config</field>
- <field name="arch" type="xml">
- <form string="Product/Category Slider">
- <sheet>
- <group>
- <field name="name"/>
- <field name="active"/>
- <field name="no_of_counts"/>
- <field name="prod_cat_type"/>
- <field name="auto_rotate"/>
- <field attrs="{'invisible': [('auto_rotate', '=', False)]}" name="sliding_speed"/>
- <field attrs="{'invisible': [('prod_cat_type', '=', 'category')], 'required': [('prod_cat_type', '=', 'product')]}" name="collections_product" widget="many2many_tags"/>
- <field attrs="{'invisible': [('prod_cat_type', '=', 'product')], 'required': [('prod_cat_type', '=', 'category')]}" name="collections_category" widget="many2many_tags"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Product Category Slider List View-->
- <record id="prod_cat_slider_list_view" model="ir.ui.view">
- <field name="name">product.category.slider.list.view</field>
- <field name="model">product.category.slider.config</field>
- <field name="arch" type="xml">
- <tree string="Product/Category Slider">
- <field name="name"/>
- <field name="no_of_counts"/>
- <field name="prod_cat_type"/>
- <!-- <field name="auto_rotate"/><field name="sliding_speed"/><field name="collections"/>-->
- </tree>
- </field>
- </record>
- <!-- Product Category Slider Action -->
- <record id="prod_cat_slider_action" model="ir.actions.act_window">
- <field name="name">Slider de Productos por Categoria</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">product.category.slider.config</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field eval="False" name="view_id"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Click para crear un nuevo Slider.
- </p>
- </field>
- </record>
- <!-- Product Category menu in slider config -->
- <menuitem action="prod_cat_slider_action" id="prod_cat_slider_menu" name="Product/Category Slider Configuraton" parent="kingfisher_pro.menu_slider_config" sequence="60"/>
- <!-- Brands slider -->
- <record id="product_brandz_search_view" model="ir.ui.view">
- <field name="name">product.brands.search.form</field>
- <field name="model">product.brands</field>
- <field name="arch" type="xml">
- <search string="Product Brands">
- <field name="name"/>
- </search>
- </field>
- </record>
- <!-- Brand Products -->
- <act_window domain="[('product_brand_id', '=', active_id)]" id="action_open_brand_products" name="Brand Products" res_model="product.template" view_mode="kanban,form,tree" view_type="form"/>
- <!-- Product Brand -->
- <act_window domain="[('product_ids', 'in', active_id)]" id="action_open_single_product_brand" name="Product Brand" res_model="product.brands" target="current" view_mode="kanban,form,tree" view_type="form"/>
- <!-- Product brand form view -->
- <record id="view_product_brands_form_view" model="ir.ui.view">
- <field name="name">product.brands.form</field>
- <field name="model">product.brands</field>
- <field name="arch" type="xml">
- <form string="Marca de Producto">
- <sheet>
- <field class="oe_avatar oe_left" name="brand_logo" widget="image"/>
- <div class="oe_title">
- <div class="oe_edit_only">
- <label for="name" string="Nombre de Marca"/>
- </div>
- <h1>
- <field name="name"/>
- </h1>
- </div>
- <div class="oe_right oe_button_box">
- <button class="oe_inline oe_stat_button" icon="fa-cubes" name="%(action_open_brand_products)d" type="action">
- <field name="products_count" string="Products" widget="statinfo"/>
- </button>
- </div>
- <group string="Tapa de Marca">
- <field height="74px" name="brand_cover" nolabel="1" widget="image"/>
- </group>
- <group string="Descripción">
- <field name="brand_description" nolabel="1"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Product brand tree view -->
- <record id="view_product_brands_tree_view" model="ir.ui.view">
- <field name="name">product.brands.tree</field>
- <field name="model">product.brands</field>
- <field name="arch" type="xml">
- <tree string="product.brands">
- <field name="name"/>
- <field name="brand_description"/>
- </tree>
- </field>
- </record>
- <!-- Product brand kanban view -->
- <record id="view_product_brands_kanban_view" model="ir.ui.view">
- <field name="name">product.brands.kanban</field>
- <field name="model">product.brands</field>
- <field name="arch" type="xml">
- <kanban>
- <field name="brand_logo"/>
- <field name="products_count"/>
- <field name="brand_description"/>
- <templates>
- <t t-name="kanban-box">
- <div class="oe_kanban_vignette oe_semantic_html_override">
- <a type="open">
- <img class="o_kanban_image" height="74" t-att-src="kanban_image('product.product', 'brand_logo', record.id.value)" width="74"/>
- </a>
- <div class="oe_kanban_details">
- <h4>
- <a type="open">
- <field name="name"/>
- </a>
- </h4>
- <div>
- <a name="%(kingfisher_pro.action_open_brand_products)d" type="action">
- <t t-esc="record.products_count.value"/>Productos</a>
- </div>
- <span>
- <t t-raw="record.brand_description.value.substr(0,200)"/>
- <t t-if="record.brand_description.value.length >200">
- <a type="open">
- <b>...</b>
- </a>
- </t>
- </span>
- </div>
- </div>
- </t>
- </templates>
- </kanban>
- </field>
- </record>
- <!-- Product brand search view -->
- <record id="inherit_product_search_view" model="ir.ui.view">
- <field name="name">inherited.product.search.form</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_search_form_view"/>
- <field name="arch" type="xml">
- <field name="name" position="after">
- <field name="product_brand_id"/>
- </field>
- <field name="categ_id" position="before">
- <filter context="{'group_by' : 'product_brand_id'}" domain="[]" name="groupby_brand" string="Brands"/>
- </field>
- </field>
- </record>
- <!-- Product template inherited search view -->
- <record id="inherited_view_product_template_search_brand" model="ir.ui.view">
- <field name="name">product.template.search.brand</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_search_view"/>
- <field name="arch" type="xml">
- <field name="name" position="after">
- <field name="product_brand_id"/>
- </field>
- <field name="categ_id" position="before">
- <filter context="{'group_by' : 'product_brand_id'}" domain="[]" name="groupby_brand" string="Brand"/>
- </field>
- </field>
- </record>
- <!-- Product product inherited search view -->
- <record id="inherited_product_template_form_brand_add" model="ir.ui.view">
- <field name="name">product.template.product.form</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_form_view"/>
- <field name="arch" type="xml">
- <field name="name" position="after">
- <field name="product_brand_id" placeholder="Brand"/>
- </field>
- </field>
- </record>
- <!-- Product template inherited kanban view -->
- <record id="inherited_view_product_template_kanban_brand" model="ir.ui.view">
- <field name="name">product kanban view: add brand</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_kanban_view"/>
- <field name="arch" type="xml">
- <xpath expr="//h4" position="after">
- <div>
- <a name="%(action_open_single_product_brand)d" t-if="record.product_brand_id" type="action">
- <field name="product_brand_id"/>
- </a>
- </div>
- </xpath>
- </field>
- </record>
- <!-- Product product inherited kanban view -->
- <record id="inherited_view_product_variant_kanban_brand" model="ir.ui.view">
- <field name="name">product variant kanban view: add brand</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_kanban_view"/>
- <field name="arch" type="xml">
- <xpath expr="//h4" position="after">
- <div>
- <a t-if="record.product_brand_id" type="open">
- <field name="product_brand_id"/>
- </a>
- </div>
- </xpath>
- </field>
- </record>
- <!-- Product template inherited tree view -->
- <record id="inherited_view_product_template_tree_brand" model="ir.ui.view">
- <field name="name">product tree view: add brand</field>
- <field name="model">product.template</field>
- <field name="inherit_id" ref="product.product_template_tree_view"/>
- <field name="arch" type="xml">
- <field name="name" position="after">
- <field name="product_brand_id"/>
- </field>
- </field>
- </record>
- <!-- Product product inherited tree view -->
- <record id="inherited_view_product_variant_tree_brand" model="ir.ui.view">
- <field name="name">product variant tree view: add brand</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_product_tree_view"/>
- <field name="arch" type="xml">
- <field name="name" position="after">
- <field name="product_brand_id"/>
- </field>
- </field>
- </record>
- <!-- Product brand action -->
- <record id="action_product_brand" model="ir.actions.act_window">
- <field name="name">Marcas</field>
- <field name="res_model">product.brands</field>
- <field name="view_type">form</field>
- <field name="view_mode">kanban,form,tree</field>
- </record>
- <!-- Brand Menu -->
- <menuitem action="action_product_brand" id="menu_product_brand" name="Product Brands" parent="kingfisher_pro.menu_slider_config"/>
- <!-- Blog Slider -->
- <!-- Blog Slider Form View-->
- <record id="dynamic_blog_slider_form_view" model="ir.ui.view">
- <field name="name">dynamic.blog.slider.form.view</field>
- <field name="model">blog.slider.config</field>
- <field name="arch" type="xml">
- <form string="Slider del Blog">
- <sheet>
- <group>
- <field name="name"/>
- <field name="active"/>
- <field name="no_of_counts"/>
- <field name="auto_rotate"/>
- <field attrs="{'invisible': [('auto_rotate', '=', False)]}" name="sliding_speed"/>
- <field name="collections_blog_post" widget="many2many_tags"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Blog Slider List View-->
- <record id="dynamic_blog_slider_list_view" model="ir.ui.view">
- <field name="name">dynamic.blog.slider.list.view</field>
- <field name="model">blog.slider.config</field>
- <field name="arch" type="xml">
- <tree string="Blog Post Slider">
- <field name="name"/>
- <field name="no_of_counts"/>
- </tree>
- </field>
- </record>
- <!-- Blog Slider Action -->
- <record id="dynamic_blog_slider_action" model="ir.actions.act_window">
- <field name="name">Blog-Slider de Publicaciones</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">blog.slider.config</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field eval="False" name="view_id"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Click para Crear un Nuevo Slider.
- </p>
- </field>
- </record>
- <!-- Blog slider main menu in config -->
- <menuitem id="blog_post_slider_configuration" name="Slider Configuración" parent="knowledge.menu_document" sequence="20"/>
- <menuitem action="dynamic_blog_slider_action" id="dynamic_blog_slider_menu" name="Configuración Slider Blog" parent="kingfisher_pro.blog_post_slider_configuration" sequence="60"/>
- <!-- Multi Product Slider Form View-->
- <record id="multi_slider_form_view" model="ir.ui.view">
- <field name="name">multi.slider.form.view</field>
- <field name="model">multi.slider.config</field>
- <field name="arch" type="xml">
- <form string="Multi Slider">
- <sheet>
- <group>
- <field name="name"/>
- <field name="active"/>
- </group>
- <group string="Configuración del Slide">
- <field name="auto_rotate"/>
- <field attrs="{'invisible': [('auto_rotate', '=', False)]}" name="sliding_speed"/>
- </group>
- <group string="Configuración de Colecciones">
- <field name="no_of_collection"/>
- <field attrs="{'invisible': [('no_of_collection', '=', False)]}" name="label_collection_1"/>
- <field attrs="{'invisible': [('no_of_collection', '=', False)]}" name="collection_1_ids" widget="many2many_tags"/>
- <field attrs="{'invisible': [('no_of_collection', '=', False)]}" name="label_collection_2"/>
- <field attrs="{'invisible': [('no_of_collection', '=', False)]}" name="collection_2_ids" widget="many2many_tags"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', 'not in', ('3', '4', '5'))], 'required': [('no_of_collection', 'in', ('3', '4', '5'))]}" name="label_collection_3"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', 'not in', ('3', '4', '5'))], 'required': ['|', ('no_of_collection', 'in', ('3', '4', '5'))]}" name="collection_3_ids" widget="many2many_tags"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', 'not in', ('4', '5'))], 'required': [('no_of_collection', 'in', ('4', '5'))]}" name="label_collection_4"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', 'not in', ('4', '5'))], 'required': [('no_of_collection', 'in', ('4', '5'))]}" name="collection_4_ids" widget="many2many_tags"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', '!=', '5')], 'required': [('no_of_collection', '=', '5')]}" name="label_collection_5"/>
- <field attrs="{'invisible': ['|', ('no_of_collection', '=', False), ('no_of_collection', '!=', '5')], 'required': [('no_of_collection', '=', '5')]}" name="collection_5_ids" widget="many2many_tags"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <!-- Multi Product Slider List View-->
- <record id="multi_slider_list_view" model="ir.ui.view">
- <field name="name">multi.slider.list.view</field>
- <field name="model">multi.slider.config</field>
- <field name="arch" type="xml">
- <tree string="Slider Dinamico">
- <field name="name"/>
- <field name="active"/>
- <field name="no_of_collection"/>
- </tree>
- </field>
- </record>
- <!-- Multi Product Slider Action -->
- <record id="multi_slider_action" model="ir.actions.act_window">
- <field name="name">Multi Slider</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">multi.slider.config</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field eval="False" name="view_id"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Click para crear un Nuevo Slider.
- </p>
- </field>
- </record>
- <!-- Main menu in config -->
- <menuitem action="multi_slider_action" id="multi_slider_menu" name="Slider Multi-Producto" parent="kingfisher_pro.menu_slider_config" sequence="70"/>
- <!-- Virta a Estirar -->
- <record id="color_sitioweb_action" model="ir.actions.act_window">
- <field name="name">Color - SitioWeb</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">ir.ui.view</field>
- <field name="">ir.ui.view</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="target">inlineview</field>
- <field eval="False" name="view_id"/>
- <field name="domain">['|', '|', ['name', 'ilike', 'Color_Sitio_Web'], ['model', 'ilike', 'Color_Sitio_Web'], ['model_data_id', 'ilike', 'Color_Sitio_Web']]</field>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">Aqui va el ayuda.
- </p>
- </field>
- </record>
- <menuitem action="" id="color_base_menu" name="Color Sitio-WEb" parent="base.marketing_menu" sequence="100"/>
- <menuitem action="color_sitioweb_action" id="color_menu_web" name="Sitio-WEb" parent="color_base_menu" sequence="100"/>
- </data>
- </openerp>
|