[UPDATE]UPDATE

This commit is contained in:
zainab8585 2024-07-17 09:01:24 +02:00
parent 1413dcd7a9
commit 204a42272f
4 changed files with 4 additions and 3 deletions

View File

@ -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)])

View File

@ -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')

View File

@ -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"""

View File

@ -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"""