mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 17:31:59 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,53 @@
|
|||
<odoo>
|
||||
<!-- Mail template are declared in a NOUPDATE block
|
||||
so users can freely customize/delete them
|
||||
-->
|
||||
<data noupdate="1">
|
||||
|
||||
<!-- Email template -->
|
||||
<record id="mail_template_hr_payslip" model="mail.template">
|
||||
<field name="name">Send payslip by email</field>
|
||||
<field name="model_id" ref="payroll.model_hr_payslip" />
|
||||
<field name="email_from">{{ user.email_formatted }}</field>
|
||||
<field name="email_to">{{ object.employee_id.private_email or object.employee_id.work_email }}</field>
|
||||
<field name="reply_to">{{ user.email_formatted }}</field>
|
||||
<field name="subject">{{ object.company_id.name }}: Platna lista {{ object.employee_id.name }} obracun {{ object.payslip_run_id.name }}</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
||||
Poštovani/a <span style="font-weight:bold;" t-out="object.employee_id.name or 'NN'" />,
|
||||
<br /><br />
|
||||
u prilogu se nalazi obračun plate: <t t-out="object.payslip_run_id.name or 'PP'"/>.
|
||||
<br /><br />
|
||||
Na raspolaganju smo Vam za sva dodatna pitanja.
|
||||
<br /><br />
|
||||
<t t-out="user.signature or 'Referent za obracun plata'"/>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template" ref="payroll.action_report_payslip" />
|
||||
<field name="lang">{{ object.employee_id.address_home_id.lang }}</field>
|
||||
<field name="auto_delete" eval="True" />
|
||||
</record>
|
||||
</data>
|
||||
|
||||
<data>
|
||||
<record id="action_partner_mass_mail" model="ir.actions.act_window">
|
||||
<field name="name">Send email with payslip</field>
|
||||
<field name="res_model">mail.compose.message</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
<field
|
||||
name="context"
|
||||
eval="{
|
||||
'default_composition_mode': 'mass_mail',
|
||||
'default_use_template': True,
|
||||
'default_template_id': ref('payroll.mail_template_hr_payslip'),
|
||||
}"
|
||||
/>
|
||||
<field name="binding_model_id" ref="payroll.model_hr_payslip" />
|
||||
<field name="binding_view_types">list</field>
|
||||
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue