Automated action with mrp module

Bug #1322466 reported by Bhavesh Selarka
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

I want to send notification mail when MO is generated and for that i have created an automated action.

My automated action rule define like with following criteria.

Automated action:

Related Document Model: Manufacturing Order
After Update: filter with state = draft

Server Action:

Object: Manufacturing Order
Action Type: Email

So when i made the Sale order for the produce type product so it will generate MO so that notification mail via automated action i want to send the email.

But i am getting following traceback.

Traceback:

File "/home/software/workspace/openerp/addons/mrp_operations/mrp_operations.py", line 272, in _compute_planned_workcenter }, context=context, update=False) TypeError: wrapper() got an unexpected keyword argument 'update'

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Bhavesh,

It seems you did some custom code and overridden write(). Didn't you?

Thanks.

Revision history for this message
Bhavesh Selarka (bhaveshselarka13) wrote : Re: [Bug 1322466] Re: Automated action with mrp module

Thanks for reply

I have not done any costom code I have just configure the automated actions
as described.

There is write method's parameter update=false part causing a error.

So if any solution is there then let me know.

Thanks.
On Jun 19, 2014 10:06 PM, "Serpent Consulting Services" <
<email address hidden>> wrote:

> Bhavesh,
>
> It seems you did some custom code and overridden write(). Didn't you?
>
> Thanks.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1322466
>
> Title:
> Automated action with mrp module
>
> Status in Odoo Addons:
> New
>
> Bug description:
> I want to send notification mail when MO is generated and for that i
> have created an automated action.
>
> My automated action rule define like with following criteria.
>
> Automated action:
>
> Related Document Model: Manufacturing Order
> After Update: filter with state = draft
>
> Server Action:
>
> Object: Manufacturing Order
> Action Type: Email
>
> So when i made the Sale order for the produce type product so it will
> generate MO so that notification mail via automated action i want to
> send the email.
>
> But i am getting following traceback.
>
>
> Traceback:
>
> File
>
> "/home/software/workspace/openerp/addons/mrp_operations/mrp_operations.py",
> line 272, in _compute_planned_workcenter }, context=context,
> update=False) TypeError: wrapper() got an unexpected keyword argument
> 'update'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-addons/+bug/1322466/+subscriptions
>

Revision history for this message
Alessandro Ruffolo (alessandro-ruffolo) wrote :

i also had the same problem, but in my situation was because I also overridden myself write() without adding the update argument. My issue solved when I finally added it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.