Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

workflow activity update [Closed]

By
Laurent33
on 6/13/13, 8:11 AM 1,075 views

The Question has been closed

by
Sudhir Arya (SA)
on 06/26/2013 09:46:10

Hi,

how can I do to update python action in 'open' workflow activity for 'account.invoice.basic' by .XML in a custom module.

E.g :
action_date_assign()
action_move_create()
action_number()
action_personal_1()   <===== adding action 1
write({'state':'open'})
action_personal_2()   <===== adding action 2

action_personal_1() to make personal process (adding fidelity points to customer)

action_personal_2() to open in some case a personal wizard after invoice validation

Kind regards,

0

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 6/13/13, 11:09 AM

You just need to overwrite the xml record ID of that activity.

Try this:

    <record id="account.act_open" model="workflow.activity">
        <field name="wkf_id" ref="account.wkf"/>
        <field name="name">open</field>
        <field name="action">action_date_assign()
action_move_create()
action_number()
action_personal_1()
write({'state':'open'})
action_personal_1()</field>
        <field name="kind">function</field>
    </record>

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/13/13, 8:11 AM
Seen: 1075 times
Last updated: 3/16/15, 8:10 AM