I would like to "mute" the qty field on pos.order form for predetermined products starting with (or containing) the char '#'.
<field name="qty" on_change="onchange_qty(product_id, discount, qty, price_unit, context)" attrs="{'invisible':[('product_id',whathere?,'#')]}"/>
What should be the correct syntax for attrs? Is there any problem using this parameter with on_change?