add module watermark report

This commit is contained in:
Bakry 2024-08-08 12:04:15 +03:00
parent e506a01d04
commit e3b1887f99
6 changed files with 15 additions and 3 deletions

View File

@ -971,6 +971,12 @@ msgstr "المعالين"
msgid "Destination"
msgstr "الجهــــه"
#. module: employee_requests
#: model:ir.model.fields,field_description:employee_requests.field_employee_other_request__destination_english
msgid "Destination English"
msgstr "الجهــــه بالانجليزي"
#. module: employee_requests
#: model_terms:ir.ui.view,arch_db:employee_requests.employee_department_jobs_template
msgid "Destination :"

View File

@ -44,6 +44,7 @@ class EmployeeOtherRequest(models.Model):
('no_detail', _("Without Details")),
('no_salary', _("Without Salary"))], string='Print Type')
destination = fields.Char(string='Destination')
destination_english = fields.Char(string='Destination English')
parent_request_id = fields.Many2one('employee.other.request')
company_id = fields.Many2one('res.company', string="Company", default=lambda self: self.env.user.company_id)

View File

@ -83,7 +83,7 @@
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination"/>
<span t-esc="doc.destination_english"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>

View File

@ -81,7 +81,7 @@
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination"/>
<span t-esc="doc.destination_english"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>

View File

@ -82,7 +82,7 @@
<td style="direction:ltr;text-align:left;border:0;width:50%;padding-right: 50px;padding-left:20px;">
<p style="font-weight: bold;color: #333;margin-bottom: 20px;">
<span style="border-bottom: 1px solid #333;">Addressed To:</span>
<span t-esc="doc.destination"/>
<span t-esc="doc.destination_english"/>
</p>
<span>This is to certify that Below-mentioned employee is working in</span>

View File

@ -102,6 +102,11 @@
('request_type','!=','insurance')]}" readonly="1"/>
<field name="destination" attrs="{'invisible': [('request_type', '!=', 'salary_define')], 'required': [('request_type', '=', 'salary_define')],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="destination_english" attrs="{'invisible': [('request_type', 'not in', ('salary_define'))],
'required': [('request_type', 'in', ('salary_define'))],
'readonly': [('state', '!=', 'draft')]}"/>
<field name="print_type" attrs="{'invisible': [('request_type', '!=', 'salary_define')], 'required': [('request_type', '=', 'salary_define')],
'readonly': [('state', '!=', 'draft')]}"/>
<!--field name="new_department_id" string="New department"