Merge pull request #235 from expsa/zainab_dev_tran

[UPDATE]UPDATE
This commit is contained in:
zainab2097 2024-07-17 06:54:03 +03:00 committed by GitHub
commit 5f6e54788a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 5 deletions

View File

@ -28,6 +28,7 @@ class Entity(models.Model):
'ؤ': 'و', # Replace Waw with Hamza Above with Waw
})
# ...
return text.translate(translation_map)
@api.model

View File

@ -38,8 +38,7 @@ class IncomingTransaction(models.Model):
else:
new_args.append(arg)
return super(IncomingTransaction, self).search(new_args, offset=offset, limit=limit, order=order, count=count)
# ;
# due_date = fields.Date(string='Deadline', compute='compute_due_date')
from_id = fields.Many2one(comodel_name='cm.entity', string='Incoming From (External)')
partner_id = fields.Many2one('res.partner')

View File

@ -57,7 +57,7 @@ class InternalTransaction(models.Model):
else:
new_args.append(arg)
return super(InternalTransaction, self).search(new_args, offset=offset, limit=limit, order=order, count=count)
# ;
@api.model
def get_url(self):
url = u''

View File

@ -65,8 +65,7 @@ class OutgoingTransaction(models.Model):
else:
new_args.append(arg)
return super(OutgoingTransaction, self).search(new_args, offset=offset, limit=limit, order=order, count=count)
# p
@api.depends('attachment_rule_ids')
def compute_attachment_num(self):
for r in self: