How do i access the field product_id.product_tmpl_id.type
from the sale.order.line
model.
I have the following button in the xml view:
button name="print_report" string="Print" type="object" icon="gtk-print" attrs="{'invisible':[('product_id.product_tmpl_id.type', '!=', 'product')]}"/>.
With this statement , Odoo shows me the following error:
Uncaught Error: Campo desconocido product_id.product_tmpl_id.type en el dominio [["product_id.product_tmpl_id.type","!=","product"]]
I appreciate your help. Thank you
can u please update where have you taken that button, is it under 'order line' tree view or outside?
if it is outside the tree view,then try keeping it in...