Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2106 Prikazi

hi,

     how to find fields of  one2many in  def field_view _get ? 

Let say  example.I want to  add one field after product_id in invoice form,but in some cases not all,thats y i need to use

def field_view _get

but field_view _get is not abel to find eleme from one2many

if doc.xpath("//field[@name='invoice_line']/tree/field[@name='product_id']"):

         #this if is not providing any result.contro is nit going to in if.some how its not abel to find fields by def fields_view_get

 [url=https://postimg.org/image/4ahove7xl/][img]https://s28.postimg.org/4ahove7xl/sho.png[/img][/url]

Avatar
Opusti