Nicolas Martinelli
ca57218b61
[FIX] mass_mailing: campaign subject
...
- Create a mailing campaign
- Create a mailing 1, set the subject to "Test 1"
- Create a mailing 2, set the subject to "Test 2"
The subject of mailing 1 is set to "Test 2".
When checking the code, this behavior seems the one expected. The
`_rec_name` of a mass mailing is the `subject_id`:
https://github.com/odoo/odoo/blob/7ef4ba03c4f8dce42f5a56b64d2374373d13aa8d/addons/mass_mailing/models/mass_mailing.py#L437
Moreover, there is an onchange to set the subject in line with the
subject of the campaign:
https://github.com/odoo/odoo/blob/7ef4ba03c4f8dce42f5a56b64d2374373d13aa8d/addons/mass_mailing/models/mass_mailing.py#L608
However this behavior is not present up to v11, and only appears in v12.
Surprisingly, this is due to an unrelated improvement which adds the
field in the view (in debug mode): 5b0bcaef3e .
Up to v11, the onchange exists, but since the fields are not in the
view, it has no effect. However, in v12 the fields are in the view so
the onchange has an effect.
Since this was the behavior up to v11, and that the behavior is fixed
in f50fbc6d16 , we keep it consistent in v12 as
well.
opw-2007764
closes odoo/odoo#34028
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com >
2019-06-11 12:25:49 +00:00
..
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-02-11 14:02:10 +00:00
2019-06-02 01:18:32 +02:00
2019-05-01 02:43:48 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 01:18:32 +02:00
2019-06-02 01:18:32 +02:00
2019-04-28 01:34:21 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-05-12 01:34:58 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-05-12 03:10:00 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-05-26 01:15:48 +02:00
2019-06-02 03:08:27 +02:00
2019-06-01 02:42:30 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-05-12 01:34:58 +02:00
2019-05-19 01:16:49 +02:00
2019-06-09 01:17:53 +02:00
2019-05-19 01:16:49 +02:00
2019-06-02 01:18:32 +02:00
2019-05-26 01:15:48 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-04-05 08:25:04 +00:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-05-26 03:07:48 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-04 10:53:17 +00:00
2019-05-09 11:12:22 +02:00
2019-04-02 15:53:02 +02:00
2019-05-17 10:00:11 +02:00
2019-04-02 15:53:01 +02:00
2019-04-04 08:58:41 +00:00
2019-04-09 09:27:35 +00:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-05-26 01:15:48 +02:00
2019-05-19 01:16:49 +02:00
2019-05-22 13:17:55 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-01-11 14:25:42 +00:00
2019-05-17 10:00:11 +02:00
2019-05-10 11:51:08 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-04-15 18:33:51 +02:00
2019-05-09 12:22:39 +00:00
2019-02-28 12:39:03 +00:00
2019-02-08 06:22:56 +00:00
2019-02-28 12:39:03 +00:00
2019-02-08 08:10:49 +00:00
2019-02-28 12:39:03 +00:00
2019-04-16 13:24:01 +00:00
2019-04-15 18:33:51 +02:00
2019-02-28 12:39:03 +00:00
2019-02-08 06:48:18 +00:00
2019-03-13 16:52:40 +01:00
2019-02-28 12:39:03 +00:00
2019-03-28 18:17:20 +01:00
2019-05-29 14:06:12 +02:00
2019-04-25 15:47:09 +02:00
2019-03-29 15:04:50 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-08 07:25:46 +00:00
2019-02-28 12:39:03 +00:00
2019-03-22 11:00:58 +00:00
2019-05-02 10:59:21 +02:00
2019-02-08 06:26:51 +00:00
2019-04-22 08:49:28 +00:00
2019-02-21 10:06:42 +00:00
2019-04-02 16:35:17 +02:00
2019-02-28 12:39:03 +00:00
2019-05-14 08:07:03 +00:00
2019-06-01 02:42:30 +02:00
2019-06-07 19:04:43 +02:00
2019-03-26 13:26:37 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-08 06:07:07 +00:00
2019-04-08 17:45:00 +02:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-08 06:11:19 +00:00
2019-02-28 12:39:03 +00:00
2019-03-25 16:47:05 +01:00
2019-04-05 13:58:16 +00:00
2019-02-28 12:39:03 +00:00
2019-02-19 07:59:25 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-02-28 12:39:03 +00:00
2019-05-15 11:47:07 +00:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-05-26 01:15:48 +02:00
2019-06-09 01:17:53 +02:00
2019-06-11 12:25:49 +00:00
2019-06-02 01:18:32 +02:00
2019-05-19 03:08:16 +02:00
2019-05-19 03:08:16 +02:00
2019-05-19 01:16:49 +02:00
2019-06-07 12:43:43 +00:00
2019-06-09 01:17:53 +02:00
2019-05-12 01:34:58 +02:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-02 01:18:32 +02:00
2019-05-05 03:10:58 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-07 19:04:43 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-04 07:24:34 +00:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-06-01 02:42:30 +02:00
2019-05-26 01:15:48 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-05-26 01:15:48 +02:00
2019-06-01 02:42:30 +02:00
2019-06-02 03:08:27 +02:00
2019-05-05 03:10:58 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-11 07:10:59 +00:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-05-19 03:08:16 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-02 01:18:32 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-04 07:03:36 +00:00
2019-06-02 01:18:32 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-05-19 01:16:49 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-05-29 14:06:12 +02:00
2019-01-29 19:24:03 +01:00
2019-03-07 10:30:54 +00:00
2019-05-19 01:16:49 +02:00
2019-02-28 12:39:03 +00:00
2019-05-19 03:08:16 +02:00
2019-05-26 01:15:48 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-07 19:04:43 +02:00
2019-05-01 02:43:48 +02:00
2019-05-12 01:34:58 +02:00
2019-05-26 01:15:48 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 03:08:27 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-02 01:18:32 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 01:18:32 +02:00
2019-06-06 11:40:28 +00:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-06-02 01:18:32 +02:00
2019-06-01 02:42:30 +02:00
2019-05-12 01:34:58 +02:00
2019-06-09 01:17:53 +02:00
2019-05-26 01:15:48 +02:00
2019-06-05 10:10:37 +00:00
2019-06-01 02:42:30 +02:00
2019-06-09 01:17:53 +02:00
2019-04-28 01:34:21 +02:00
2019-06-02 03:08:27 +02:00
2019-05-29 14:06:12 +02:00
2019-06-09 01:17:53 +02:00
2019-06-09 01:17:53 +02:00
2019-06-01 02:42:30 +02:00