Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

kanban view inherit fields and make invisible

By
omkar
on 4/26/14, 9:44 AM 2,045 views

Hi Friends.

I want to inherit kanban view from Products and want to make field Price Invisible from my custom Module.

1
Farid Ghanchi
On 8/20/14, 1:41 AM

Hi please define ir.ui.view and

<field name="arch" type="xml">
            <xpath expr="/kanban/templates/field[@name='date_deadline']" position='attributes'>
                <attribute name="invisible">1</attribute>
            </xpath>

</field>

Thanks

0
Bilel
On 9/9/16, 4:03 AM

Hi,

same issue

how can i put rating field readonly

this code don't work:

```

<record model="ir.ui.view" id="crm_lead1_kanban_view">

<field name="name">Opportunities1 kanban</field>

<field name="model">crm.lead</field>

<field name="type">kanban</field>

<field name="inherit_id" ref="crm.crm_case_kanban_view_leads" />

<field name="arch" type="xml">

<xpath expr="//field[@name='priority']" position="attributes">

<attribute name="readonly">1</attribute>

</xpath>

</field>

</record>

```

```

<xpath expr="//t/div/div/div/field[@name='priority']" position="attributes">

<attribute name="readonly">1</attribute>

</xpath>

```

i try also:

```

<field name="type">form</field> instead <field name="type">kanban</field>

```

I try also to set field readonly directly from the debugger view kanban but still not working!

the new question, is it possible to set attrs to fields in view kanban? ot i must overide field throught python model

with no result,i try also:

```

<xpath expr="//div[contains(@class, 'o_kanban_footer')]/field[@name='priority']" position="attributes">

```

the path is correct, i can change field by:

```

<xpath expr="//div[contains(@class, 'o_kanban_footer')]/field[@name='priority']" position="replace">

<field name="priority"/>

</xpath>

```

so can i change attributes also!?

thx

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/26/14, 9:44 AM
Seen: 2045 times
Last updated: 9/9/16, 4:03 AM