Thibault Delavallée and Michaël Mattiello
5e4efef3ca
[REF] event : move from onchange / default to stored editable computed fields
...
PURPOSE
Try to move from onchange / default_get to stored editable computed fields.
Behavior should be the same (computed or set by user), with support of
create / write / onchange field update without additional code.
SPECIFICATIONS: GLOBAL RULES
Update classic fields updated in some cases by onchange and/or default methods
by fields with store=True, readonly=False. It means their value comes either
from manual user input, either from trigger based computation.
Remove onchange and default_get when possible, leading to an unique computation
method and clearing fields definition.
Also clean some fields definition inconsistencies, notably required fields
that should instead be correctly computed or default that have no real meaning.
SPECIFICATIONS: REQUIRED FIELDS
As computed fields are computed after create required attribute cannot be
respected without computing them beforehand. That is why we have some custom
code to compute required fields if not given at create and update the creation
values accordingly.
SPECIFICATIONS: MAIL SCHEDULING
Mail scheduling on event type is modified in this commit. Previously checking
the use_mail_schedule radio button had no effect on event_type_mail_ids field.
It is now reset if unchecked. It is therefore coherent with use_ticket and
event_type_ticket_ids field behavior.
LINKS
Task ID 2089156
Community PR odoo/odoo#42911
Co-Authored-By: Thibault Delavallée <tde@odoo.com >
Co-Authored-By: Michaël Mattiello <mcm@odoo.com >
2020-03-10 11:15:09 +00:00
..
2020-03-09 13:49:06 +00:00
2020-01-22 11:23:16 +00:00
2020-01-16 15:51:15 +00:00
2020-02-19 09:09:20 +00:00
2020-02-19 09:09:20 +00:00
2020-02-19 09:09:20 +00:00
2020-02-24 11:50:06 +00:00
2020-02-13 16:52:56 +00:00
2020-03-02 06:26:02 +00:00
2020-01-20 08:46:04 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-13 11:45:39 +00:00
2020-03-02 06:26:02 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 09:12:44 +00:00
2020-02-04 17:54:18 +01:00
2020-02-17 15:47:16 +00:00
2020-03-05 14:03:45 +00:00
2020-02-04 10:33:19 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 10:42:43 +00:00
2020-02-24 14:05:34 +00:00
2020-02-13 08:00:22 +00:00
2020-03-02 06:26:02 +00:00
2019-12-20 09:09:12 +01:00
2020-03-06 10:21:56 +00:00
2020-02-11 14:01:13 +00:00
2020-03-10 11:15:09 +00:00
2020-03-10 11:15:09 +00:00
2020-01-10 16:06:40 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 12:43:06 +00:00
2020-02-21 09:45:56 +00:00
2020-02-19 09:09:20 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-26 16:31:34 +00:00
2020-02-12 09:32:17 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 12:43:06 +00:00
2020-03-03 14:35:04 +00:00
2020-02-13 11:45:39 +00:00
2020-03-06 16:07:21 +00:00
2020-02-19 09:02:56 +00:00
2020-03-06 14:20:42 +00:00
2020-02-13 11:45:39 +00:00
2020-03-05 14:03:45 +00:00
2020-01-08 13:26:03 +00:00
2020-01-08 13:26:03 +00:00
2020-03-05 14:03:45 +00:00
2020-01-28 10:28:33 +00:00
2020-02-13 11:45:39 +00:00
2020-02-04 12:42:35 +00:00
2020-03-02 09:01:11 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 16:47:34 +00:00
2020-02-28 15:16:17 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-09 15:50:39 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-19 09:09:20 +00:00
2020-01-30 14:43:11 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-09 15:50:39 +00:00
2020-03-05 09:49:15 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-01-28 09:56:51 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-02 06:26:02 +00:00
2020-03-10 08:33:02 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 14:27:02 +00:00
2020-02-13 11:45:39 +00:00
2020-02-13 11:45:39 +00:00
2020-02-04 14:48:31 +00:00
2020-01-08 09:11:50 +00:00
2020-02-19 09:09:20 +00:00
2020-02-13 11:45:39 +00:00
2020-03-05 11:04:49 +00:00
2020-03-02 06:26:02 +00:00
2020-03-05 13:04:11 +00:00
2020-02-13 11:45:39 +00:00
2020-03-04 16:07:47 +00:00
2020-03-02 17:06:25 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-02 06:26:02 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 17:45:16 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 15:53:22 +00:00
2020-03-05 14:03:45 +00:00
2020-03-02 06:26:02 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 16:15:44 +00:00
2020-03-06 16:15:44 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-24 15:22:40 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-05 10:17:03 +00:00
2020-03-05 14:03:45 +00:00
2020-03-09 06:46:25 +00:00
2020-02-19 09:09:20 +00:00
2020-03-05 14:03:45 +00:00
2020-03-03 12:18:51 +00:00
2020-02-13 11:45:39 +00:00
2020-03-05 14:03:45 +00:00
2020-01-31 15:35:54 +00:00
2020-03-06 09:16:16 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 13:04:11 +00:00
2020-02-27 13:10:02 +00:00
2020-03-06 09:16:16 +00:00
2020-03-02 06:26:02 +00:00
2020-03-10 10:59:05 +00:00
2020-03-09 14:33:25 +00:00
2020-02-19 09:09:20 +00:00
2020-02-26 13:08:31 +00:00
2020-02-28 10:47:15 +00:00
2020-02-13 11:45:39 +00:00
2020-03-05 16:02:38 +00:00
2020-02-13 11:45:39 +00:00
2020-01-27 11:42:05 +00:00
2020-02-13 11:45:39 +00:00
2020-02-13 11:45:39 +00:00
2020-01-28 14:51:36 +00:00
2020-03-10 08:53:10 +00:00
2020-03-05 13:04:11 +00:00
2020-03-05 14:03:45 +00:00
2020-03-02 15:56:16 +00:00
2020-02-21 10:40:34 +00:00
2020-02-20 14:51:13 +00:00
2020-03-05 11:27:01 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-09 15:16:28 +00:00
2020-03-05 13:04:10 +00:00
2020-03-05 14:03:45 +00:00
2020-03-04 16:07:47 +00:00
2020-03-05 13:32:57 +00:00
2020-02-24 11:53:11 +00:00
2020-03-09 09:41:13 +00:00
2020-02-08 18:55:15 +00:00
2020-03-06 16:15:44 +00:00
2020-03-05 11:27:01 +00:00
2020-02-25 13:46:10 +00:00
2020-03-05 14:03:45 +00:00
2020-01-21 06:56:15 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-06 09:20:01 +00:00
2020-03-06 09:20:01 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-03-02 06:26:02 +00:00
2020-03-02 06:26:02 +00:00
2020-03-09 16:46:20 +00:00
2020-03-07 11:09:36 +00:00
2020-02-28 13:05:31 +00:00
2020-03-04 14:31:06 +00:00
2020-03-09 18:20:29 +00:00
2020-02-26 17:44:18 +00:00
2020-02-13 15:29:40 +00:00
2020-02-13 11:45:39 +00:00
2020-03-06 20:04:05 +00:00
2020-02-13 15:29:40 +00:00
2020-03-06 20:04:05 +00:00
2020-03-10 11:15:09 +00:00
2020-03-10 11:15:09 +00:00
2020-03-10 11:15:09 +00:00
2020-03-10 11:15:08 +00:00
2020-03-06 16:25:34 +00:00
2020-02-13 11:45:39 +00:00
2020-02-28 08:58:43 +00:00
2020-03-02 15:18:29 +00:00
2020-03-06 11:10:48 +00:00
2020-02-13 15:29:00 +00:00
2020-02-27 16:54:25 +00:00
2020-02-18 16:04:11 +00:00
2020-02-13 11:45:39 +00:00
2020-02-13 11:45:39 +00:00
2020-02-13 11:45:39 +00:00
2020-03-09 17:19:08 +00:00
2020-03-09 16:31:02 +00:00
2020-02-14 12:45:57 +00:00
2020-02-27 12:19:24 +00:00
2020-02-13 11:45:39 +00:00
2020-03-09 11:53:29 +00:00
2020-02-13 11:45:39 +00:00
2020-01-27 14:26:00 +00:00
2020-03-09 09:10:29 +00:00
2020-03-05 14:03:45 +00:00
2020-03-05 14:03:45 +00:00
2020-02-13 15:29:40 +00:00
2020-01-24 13:02:02 +00:00