Merge pull request #431 from expsa/tran_dev

Tran dev
This commit is contained in:
zainab2097 2024-07-30 11:58:31 +03:00 committed by GitHub
commit 577cbafdb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class Transaction(models.Model):
h_date =" تاريخ المعاملة الهجري : " +(str(self.transaction_date) if self.transaction_date else '')
datem = " تاريخ المعاملة الميلادي : "+ (str(self.transaction_date) if self.transaction_date else '')
rank = " رتبة المعاملة : "+(str(self.attachment_num) if self.attachment_num else '0')
full_text = transaction_text + "\n" + subject_text.center(60)+"\n"+h_date+'\n'+datem+'\n'+rank.center(50)
full_text = transaction_text + "\n" + subject_text.center(100)+"\n"+h_date+'\n'+datem+'\n'+rank.center(60)
def draw_text(draw, text, position, font, alignment="left"):
text_size = draw.textsize(text, font=font)

View File

@ -16,7 +16,7 @@ class Entity(models.Model):
_description = 'Transactions Contacts'
_order = 'name'
employee_id = fields.Many2one('hr.employee', string='Delivery Employee')
employee_id = fields.Char(string='Delivery Employee')
company_name = fields.Char('Delivery Company')
def _normalize_arabic_text(self, text):
translation_map = str.maketrans({