Update barcode.py
This commit is contained in:
parent
314746310b
commit
d8ace7577b
|
|
@ -63,7 +63,7 @@ class Transaction(models.Model):
|
|||
draw_text(draw, " رقم المعاملة : " + (self.name or ''), (10, 20), font)
|
||||
draw_text(draw, " تاريخ المعاملة الهجري : " + (self.transaction_date_hijri or '').replace('-', '/'), (10, 60), font)
|
||||
draw_text(draw, " تاريخ المعاملة الميلادي : " + (str(self.transaction_date) if self.transaction_date else '').replace('-', '/'), (10, 100), font)
|
||||
draw_text(draw, " رتبة المعاملة : " + (str(self.attachment_num) if self.attachment_num else '0'), (40, 140), font)
|
||||
draw_text(draw, " رتبة المعاملة : " + (str(self.attachment_num) if self.attachment_num else '0'), (70, 140), font)
|
||||
|
||||
# Generate barcode
|
||||
barcode = self.env['ir.actions.report'].barcode('Code11', self.name, width=250, height=100, humanreadable=0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue