← Back to team overview

openerp-india team mailing list archive

[Bug 912189] Re: [6.1]function field can't have a function field in invalidation function

 

Hello Benoit,

I have completely checked your issue, We have already used a function
field have a function field and it's working fine.

Would you please checked project.task object's all hour_get function
field.i.e planned_hours, effective_hours, total_hours and progress_rate.
These all field are working fine

So Would you please double check your code, I think you might have a
mistake in your code. And notify us.

Thank you!

** Changed in: openobject-server
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/912189

Title:
  [6.1]function field can't have a function field in invalidation
  function

Status in OpenERP Server:
  Incomplete

Bug description:
  In stock_picking, I added a new function field : delivery_date.

  'delivery_date': fields.function(_get_delivery_date, string='Delivery Date', type="datetime", 
                                              store= {
                                  'delivery.carrier':(_get_picking_from_delivery, ['delivery_lead_time'], 10),
                                  'stock.picking':(lambda self, cr, uid, ids, c=None: ids, ['carrier_id','max_date'], 10),
                                  }

  This field has to be update when max_date changes.
  But max_date is a function field as well. 
  When the field max_date is updated, the new function field is not updated. 

  Best regards,

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/912189/+subscriptions


References