Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Kanban view in Odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3.50k
    Comment on it

    Kanban view defined as A kanban view shows a set of cards possibly grouped in columns it is important for odoo module to describe xml functionality. For example you can see below code which is use in .xml file.

        <record model="ir.ui.view" id="view_openacad_session_kanban">
            <field name="name">openacad.session.kanban</field>
            <field name="model">openacademy.session</field>
            <field name="arch" type="xml">
                <kanban default_group_by="course_id">
                    <field name="color"/>
                        <t t-name="kanban-box">
                                                  oe_kanban_global_click_edit oe_semantic_html_override
                                                  oe_kanban_card {{record.group_fancy==1 ? 'oe_kanban_card_fancy' : ''}}">
                                <div class="oe_dropdown_kanban">
                                    <!-- dropdown menu -->
                                    <div class="oe_dropdown_toggle">
                                        <i class="fa fa-bars fa-lg"/>
                                        <ul class="oe_dropdown_menu">
                                                <a type="delete">Delete</a>
                                                <ul class="oe_kanban_colorpicker"
                                    <div class="oe_clear"></div>
                                <div t-attf-class="oe_kanban_content">
                                    <!-- title -->
                                    Session name:
                                    <field name="name"/>
                                    Start date:
                                    <field name="start_date"/>
                                    <field name="duration"/>
        <record model="ir.actions.act_window" id="session_list_action">
            <field name="name">Sessions</field>
            <field name="res_model">openacademy.session</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar,gantt,graph,kanban</field>
        <menuitem id="session_menu" name="Sessions"

    Note-Add an integer color field to the Session model and add the kanban view and update the action.

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: