Community mailing list archives

community@mail.odoo.com

Re: hide field in report quotation

by
David Bertha
- 07/25/2015 06:03:48
Hi,
In a qweb report you should use t-if="not l.product_uom_qty == 0". The span field won't be computed if the t-if condition failed

On 25/07/15 10:18, moulay rachid Hachimi wrote:
<blockquote cite="mid:CANEcV-K_ZN5x_BCZTzrEcsMvHgpv3waV_m+H4v9X3-DrRPZKjw@mail.gmail.com" type="cite">
hi
please what wrong with my code

my goal is that when product quntity equl to zero in the printed report it disapear

 <td class="text-right">
                            <span t-field="l.product_uom_qty"    attrs="{'invisible': [('l.product_uom_qty','=', 0)]}" />
                            <span groups="product.group_uom" t-field="l.product_uom"/>
                        </td>

thanks

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe