"Start migration to 6.0 [SKIP CI]."

This commit is contained in:
Sergio Morillo 2021-06-04 00:10:01 +02:00
parent 3377ca4682
commit 9a5efcdcb9
2 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@ class ShipmentWebLinkMixin(object):
'get_encrypted_url')
encrypted_id = fields.Function(fields.Char('Encrypted id'),
'get_encrypted_id')
attachments = fields.Function(fields.One2Many('ir.attachment',
None, 'Attachments'), 'get_attachments')
attachments = fields.Function(fields.Many2Many('ir.attachment',
None, None, 'Attachments'), 'get_attachments')
@classmethod
def __setup__(cls):
@ -44,7 +44,7 @@ class ShipmentWebLinkMixin(object):
})
cls.state.selection.extend([('mail_sent', 'Mail sent')])
cls._buttons['draft']['invisible'] = ~Eval('state').in_(
['waiting', 'cancel', 'mail_sent'])
['waiting', 'cancelled', 'mail_sent'])
@classmethod
def get_custom_title(self, report_name, record, title):

View File

@ -1,5 +1,5 @@
[tryton]
version=5.0.0
version=6.0.0
depends:
ir
res