From f42f580d6c21afccb5f3b2c62e9b73e61beaae74 Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:51:21 +0300 Subject: [PATCH 1/2] Update entity.py --- odex25_transactions/exp_transaction_documents/models/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_transactions/exp_transaction_documents/models/entity.py b/odex25_transactions/exp_transaction_documents/models/entity.py index f93c80eb5..93ed0d330 100644 --- a/odex25_transactions/exp_transaction_documents/models/entity.py +++ b/odex25_transactions/exp_transaction_documents/models/entity.py @@ -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({ From 27b1e9bd91c57ba3eb39168bac15a26c5fea7c40 Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:54:00 +0300 Subject: [PATCH 2/2] Update barcode.py --- odex25_transactions/cm_odex_barcode/models/barcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_transactions/cm_odex_barcode/models/barcode.py b/odex25_transactions/cm_odex_barcode/models/barcode.py index ae5440001..1f30baf53 100644 --- a/odex25_transactions/cm_odex_barcode/models/barcode.py +++ b/odex25_transactions/cm_odex_barcode/models/barcode.py @@ -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)