Odoo Help

1

0
5 Answers
1
Ramla
3/14/19, 12:09 AM

<odoo>

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

<field name="name">test.test.kanban.view</field>

<field name="model">test.test</field>

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

<kanban>

<field name="id"/>

<field name="name"/>

<field name="image_medium"/>

<templates>

<t t-name="kanban-box">

<div t-attf-class="oe_kanban_global_click">

<div class="oe_kanban_details">

<div class="row">

<div class="col-md-3">

<div class="o_kanban_image">

<img t-att-src="kanban_image('test.test','image_medium',record.id.raw_value)"/>

</div>

</div>

<div class="col-md-5">

<strong><field name="name"/></strong>

<div name="tags"/>

</div>

</div>

</div>

</div>

</t>

</templates>

</kanban>

</field>

</record>

</odoo>

2 Comments
Jignesh Mehta
3/14/19, 12:10 AM

Thank you so much for your answer. In odoo12, we have to define <field name="id"/> which is not compulsory in odoo10.

Ramla
3/14/19, 4:55 AM

You are welcome

0
Avatar

Hilar AK

--Hilar AK--
7413
| 5 5 10
Switzerland
--Hilar AK--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Quora:
    

            https://www.quora.com/profile/Hilar-Ak-1

Experienced Odoo developer, Functional Consultant.



Hilar AK
3/11/19, 6:54 AM

Make your image field storable in DB, if its a related field.


    image_medium = fields.Binary('Image', related='product_id.image_medium', store=True)

2 Comments
Jignesh Mehta
3/11/19, 7:07 AM

Thanks for your answer, but i still get same error after add store=True in field definition.

Jignesh Mehta
3/12/19, 2:44 AM

Hello @Hilar AK, I tried with remove related field but same issue occurs. Can you help me on this ? Thanks,

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now