Skip to Content
Menu
This question has been flagged
1931 Views

I created a computed field (x_studio_open_sales_total) and my computation is:

for record in self:

  total = 0

  for line in record.x_studio_open_sales:

    if (line.product_uom_qty != line.qty_delivered):

      total += line.price_total

      record['x_studio_open_sales_total'] = total


When I try to export this field (x_studio_open_sales_total) in an excel sheet, I am getting an error "Error: Undefined". I have exported computed fields in the past without issue, but am not sure why this one will not export.    

Avatar
Discard