[IMP] mail: enable inheritance in the next activity values computation

values for next activities are currently prepared inside the `mail_activity._action_done()` method which makes inheritance very difficult. This commit delegates the value computation to a sub-method and thereby improves the extensibility of the module.

required to support changes to enterprise documents odoo/enterprise#20769
Task-2627837

closes odoo/odoo#77004

X-original-commit: a26e6e954c5e6c773f37e9239138a7b94ded821f
Related: odoo/enterprise#21079
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Habib (ayh)
2021-09-22 20:38:59 +00:00
parent ef6d967907
commit 45ee18ce5b
3 changed files with 61 additions and 13 deletions
+16
View File
@@ -19,5 +19,21 @@
<field name="category">default</field>
<field name="res_model">mail.test.activity</field>
</record>
<record id="mail_act_test_chained_2" model="mail.activity.type">
<field name="name">Step 2</field>
<field name="summary">Take the second step.</field>
<field name="category">default</field>
<field name="res_model">mail.test.activity</field>
<field name="delay_count">10</field>
<field name="delay_from">current_date</field>
</record>
<record id="mail_act_test_chained_1" model="mail.activity.type">
<field name="name">Step 1</field>
<field name="summary">Take the first step.</field>
<field name="category">default</field>
<field name="res_model">mail.test.activity</field>
<field name="chaining_type">trigger</field>
<field name="triggered_next_type_id" ref="test_mail.mail_act_test_chained_2"/>
</record>
</odoo>