Odoo Help

1

Uom on shopping cart

By
Roberto Barreiro
on 1/19/16, 7:37 AM 797 views

Can be the unit of measure shown on the shopping cart in odoo8?

1
Axel Mendoza
On 1/21/16, 10:41 AM

Yes you can. Just need to extends the template website_sale.cart
something like:

<template id="cart_instance" inherit_id="website_sale.cart" customize_show="True" name="Cart Inst">

<xpath expr="//table[@id='cart_products']/thead/tr/th[1]" position="after">

<th width="100">Unit of measure</th>

</xpath>

<xpath expr="//table[@id='cart_products']/tbody/t/tr/td[3]" position="after">

<td>

<span t-field="line.uom_id" style="white-space: nowrap;"/>

</td>

</xpath>

</template>

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

Question tools

1 follower(s)

Stats

Asked: 1/19/16, 7:37 AM
Seen: 797 times
Last updated: 8/13/17, 1:25 PM