[UPDATE]UPDATE
This commit is contained in:
parent
1413dcd7a9
commit
204a42272f
|
|
@ -24,7 +24,7 @@ class Entity(models.Model):
|
|||
domain = ['|', ('name', operator, name), ('code', operator, name)]
|
||||
print(domain)
|
||||
return self._search(domain + args, limit=limit, access_rights_uid=name_get_uid)
|
||||
|
||||
#
|
||||
@api.constrains('code')
|
||||
def _check_code(self):
|
||||
count = self.search_count([('code', '=', self.code), ('id', '!=', self.id)])
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class IncomingTransaction(models.Model):
|
|||
# attachment_file = fields.Many2many(
|
||||
# comodel_name='ir.attachment',
|
||||
# string='')
|
||||
#
|
||||
|
||||
datas = fields.Binary(string="", related='send_attach.datas')
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class InternalTransaction(models.Model):
|
|||
####################################################
|
||||
# Business methods
|
||||
####################################################
|
||||
|
||||
#
|
||||
def action_draft(self):
|
||||
for record in self:
|
||||
"""her i need to review code for to_ids"""
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class OutgoingTransaction(models.Model):
|
|||
# Business methods
|
||||
####################################################
|
||||
#
|
||||
|
||||
#
|
||||
def action_draft(self):
|
||||
for record in self:
|
||||
"""her i need to review code for to_ids"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue