← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 801540] Re: Email actions sends outdated data

 

Ok I found the problem, the old_write method was called after the action
one, that's why data were outdated in WRITE and not in CREATE.

See attachment!


** Patch added: "Patch to fix bug #801540"
   https://bugs.launchpad.net/openobject-addons/+bug/801540/+attachment/2237229/+files/base_action_rule.diff

** Changed in: openobject-addons
       Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/801540

Title:
  Email actions sends outdated data

Status in OpenERP Modules (addons):
  Confirmed

Bug description:
  With OpenERP 6.0.2 and automated actions from CRM module.

  I planned to automatically send an email after each record changes.
  When i click on "Save" an email is sent with my object data at state "n-1".

  For example with a crm.helpdesk object named "Record number one"
  I change its name property with "Record number two" and click on "Save" then an email is sent, and in this one the [[object]] is always at the "n" state so the [[object.name]] property shows "Record number one".

  It looks like the mail is sent before the database update.

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


References