diff options
| author | Thanh Dodeur <tso@odoo.com> | 2019-04-05 08:11:26 +0000 |
|---|---|---|
| committer | Thanh Dodeur <tso@odoo.com> | 2019-06-05 09:12:13 +0000 |
| commit | c212cfe8992292f57acacd809de26e1817533095 (patch) | |
| tree | 4ab6e06aa7e9e74087bc81fac2047b7c113ea941 /addons/test_mail/tests/test_message_compose.py | |
| parent | d6847bacb1d2425466003985f9e96837f22c2148 (diff) | |
[REF] *: removes datas_fname from ir.attachment
This commit removes the field `datas_fname` from `ir.attachment` as
it was unnecessary and most of the time the duplicate of `name` or
`url`.
Task #1909865
closes odoo/odoo#32976
Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Diffstat (limited to 'addons/test_mail/tests/test_message_compose.py')
| -rw-r--r-- | addons/test_mail/tests/test_message_compose.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/test_mail/tests/test_message_compose.py b/addons/test_mail/tests/test_message_compose.py index 32a9a44e3ee..f755213a93f 100644 --- a/addons/test_mail/tests/test_message_compose.py +++ b/addons/test_mail/tests/test_message_compose.py @@ -86,11 +86,11 @@ class TestMessagePost(BaseFunctionalTest, MockEmails, TestRecipients): ('List2', b'My second attachment') ] _attach_1 = self.env['ir.attachment'].sudo(self.user_employee).create({ - 'name': 'Attach1', 'datas_fname': 'Attach1', + 'name': 'Attach1', 'datas': 'bWlncmF0aW9uIHRlc3Q=', 'res_model': 'mail.compose.message', 'res_id': 0}) _attach_2 = self.env['ir.attachment'].sudo(self.user_employee).create({ - 'name': 'Attach2', 'datas_fname': 'Attach2', + 'name': 'Attach2', 'datas': 'bWlncmF0aW9uIHRlc3Q=', 'res_model': 'mail.compose.message', 'res_id': 0}) |
