跳至内容
菜单
此问题已终结
3592 查看


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


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' ?

编写者

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.

相关帖文 回复 查看 活动
0
1月 20
4873
1
3月 15
3818
0
6月 16
3705
1
3月 15
4198
0
3月 15
3801