123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <menuitem id="menu_slider_config" parent="base.menu_base_partner" name="Slider Configuration" 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 name="sliding_speed"
- attrs="{'invisible': [('auto_rotate', '=', False)]}"/>
- <field name="collections_product"
- attrs="{'invisible': [('prod_cat_type', '=', 'category')],
- 'required': [('prod_cat_type', '=', 'product')]}"
- widget="many2many_tags"/>
- <field name="collections_category"
- attrs="{'invisible': [('prod_cat_type', '=', 'product')],
- 'required': [('prod_cat_type', '=', '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">Product/Category Slider</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 name="view_id" eval="False"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Click to define a new slider.
- </p>
- </field>
- </record>
- <!-- Product Category menu in slider config -->
- <menuitem id="prod_cat_slider_menu"
- name="Product/Category Slider Configuration"
- action="prod_cat_slider_action"
- 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 id="action_open_brand_products"
- name="Brand Products"
- res_model="product.template"
- view_type="form"
- view_mode="kanban,form,tree"
- domain="[('product_brand_id', '=', active_id)]"/>
- <!-- Product Brand -->
- <act_window id="action_open_single_product_brand"
- name="Product Brand"
- res_model="product.brands"
- view_type="form"
- view_mode="kanban,form,tree"
- target="current"
- domain="[('product_ids', 'in', active_id)]"/>
- <!-- 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="Product Brands">
- <sheet>
- <field name="brand_logo" widget="image" class="oe_avatar oe_left"/>
- <div class="oe_title">
- <div class="oe_edit_only">
- <label for="name" string="Brand Name"/>
- </div>
- <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_brand_products)d"
- icon="fa-cubes">
- <field name="products_count" string="Products" widget="statinfo" />
- </button>
- </div>
- <group string="Brand Cover">
- <field name="brand_cover"
- height="74px"
- nolabel='1' widget="image"/>
- </group>
- <group string="Description">
- <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 t-att-src="kanban_image('product.product', 'brand_logo', record.id.value)"
- height="74"
- width="74"
- class="o_kanban_image"/>
- </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"/> Products
- </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 string="Brands" name="groupby_brand" domain="[]"
- context="{'group_by' : 'product_brand_id'}"/>
- </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 string="Brand" name="groupby_brand" domain="[]"
- context="{'group_by' : 'product_brand_id'}"/>
- </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 t-if="record.product_brand_id" type="action"
- name="%(action_open_single_product_brand)d">
- <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 model="ir.actions.act_window" id="action_product_brand">
- <field name="name">Brands</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 id="menu_product_brand"
- name="Product Brands"
- action="action_product_brand"
- 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="Blog Post Slider">
- <sheet>
- <group>
- <field name="name"/>
- <field name="active"/>
- <field name="no_of_counts"/>
- <field name="auto_rotate"/>
- <field name="sliding_speed"
- attrs="{'invisible': [('auto_rotate', '=', False)]}"/>
- <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 Post Slider</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 name="view_id" eval="False"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Click to define a new slider.
- </p>
- </field>
- </record>
- <!-- Blog slider main menu in config -->
- <menuitem name="Slider Configuration" id="blog_post_slider_configuration" parent="knowledge.menu_document" sequence="20" />
- <menuitem id="dynamic_blog_slider_menu"
- name="Blog Slider Configuration"
- action="dynamic_blog_slider_action"
- 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="Slider configuration">
- <field name="auto_rotate"/>
- <field name="sliding_speed"
- attrs="{'invisible': [('auto_rotate', '=', False)]}"/>
- </group>
- <group string="Collection configuration">
- <field name="no_of_collection"/>
- <field name="label_collection_1"
- attrs="{'invisible': [('no_of_collection', '=', False)]}"/>
- <field name="collection_1_ids"
- attrs="{'invisible': [('no_of_collection', '=', False)]}"
- widget='many2many_tags'/>
- <field name="label_collection_2"
- attrs="{'invisible': [('no_of_collection', '=', False)]}" />
- <field name="collection_2_ids"
- attrs="{'invisible': [('no_of_collection', '=', False)]}"
- widget='many2many_tags'/>
- <field name="label_collection_3"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', 'not in', ('3', '4', '5'))],
- 'required': [('no_of_collection', 'in', ('3', '4', '5'))]}"/>
- <field name="collection_3_ids"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', 'not in', ('3', '4', '5'))],
- 'required': ['|', ('no_of_collection', 'in', ('3', '4', '5'))]}"
- widget='many2many_tags'/>
- <field name="label_collection_4"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', 'not in', ('4', '5'))],
- 'required': [('no_of_collection', 'in', ('4', '5'))]}"/>
- <field name="collection_4_ids"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', 'not in', ('4', '5'))],
- 'required': [('no_of_collection', 'in', ('4', '5'))]}"
- widget='many2many_tags'/>
- <field name="label_collection_5"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', '!=', '5')],
- 'required': [('no_of_collection', '=', '5')]}"/>
- <field name="collection_5_ids"
- attrs="{'invisible': ['|', ('no_of_collection', '=', False),
- ('no_of_collection', '!=', '5')],
- 'required': [('no_of_collection', '=', '5')]}"
- 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="Dynamic Slider">
- <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 name="view_id" eval="False"/>
- <field name="help" type="html">
- <p class="oe_view_nocontent_create">
- Click to define a new slider.
- </p>
- </field>
- </record>
- <!-- Main menu in config -->
- <menuitem id="multi_slider_menu"
- name="Multi Product Slider Configuration"
- action="multi_slider_action"
- parent="kingfisher_pro.menu_slider_config"
- sequence="70"/>
- </data>
- </openerp>
|