commit
577cbafdb5
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue