Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3604 Weergaven


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



Avatar
Annuleer

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

Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
jan. 20
4876
1
mrt. 15
3835
0
jun. 16
3713
1
mrt. 15
4215
0
mrt. 15
3819