Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

How to hide fields in order_line based on some value of their parent (order_id) in Odoo v16?

$
0
0

Is there any way to hide some fields in purchase order line based on some conditions/value of their parent (order_id). I've tried this way:

<field name="price_subtotal" attrs="{'invisible': [('order_id.currency_id.name', '=', 'IDR')]}"/>

But unfortunately, this one only works with Odoo v7 and lower. I use v16 by the way.Thanks in advance.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>