Odoo Help


Workflow and inheritance

Anders Wallenquist
on 9/6/15, 10:23 AM 925 views

      <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()
<field name="kind">function</field>

I want to add assign_serial_numbers() to the activity act_open in account. This solution overwrite the original record, but what is the best practice to add data to a field in a workflow.activity-record?

Didn't you try to call your function from the 'invoice_validate' ?

Tarek Mohamed Ibrahim
on 9/6/15, 10:41 AM

I have (account_move_create()), but I think a separate method (assign_serial_number) are more flexible. If some one wants to move the assignement in the workflow its very easy without any codeing.

Anders Wallenquist
on 9/6/15, 10:55 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/6/15, 10:23 AM
Seen: 925 times
Last updated: 9/7/15, 7:25 AM