1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/planning/wizard/planning_send_views.xml
2024-12-10 09:04:09 +07:00

67 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="planning_send_view_form" model="ir.ui.view">
<field name="name">planning.send.form</field>
<field name="model">planning.send</field>
<field name="arch" type="xml">
<form>
<group>
<group>
<field name="start_datetime" string="Period" widget="daterange" options="{'end_date_field': 'end_datetime'}" />
<field name="end_datetime" invisible="1" />
</group>
<group>
<field name="include_unassigned"/>
<field name="slot_ids" invisible="1"/>
</group>
</group>
<group col="2">
<field name="employee_ids" widget="many2many_avatar_employee" default_focus="1"/>
<field name="note" nolabel="1" colspan="2" placeholder="Additional message"/>
</group>
<footer>
<button name="action_check_emails" type="object" string="Publish &amp; Send" class='btn-primary' data-hotkey="q"/>
<button name="discard" string="Discard" class='btn-secondary' special="cancel" data-hotkey="x"/>
</footer>
</form>
</field>
</record>
<record id="employee_no_email_list_wizard" model="ir.ui.view">
<field name="name">planning.send.employee.no.mail.wizard</field>
<field name="model">planning.send</field>
<field name="arch" type="xml">
<form string="Employees with no Work Email">
<group col="2">
<p colspan="2">
Define a work email address for the following employees so they will receive the planning.
</p>
</group>
<group col="2">
<field name="employees_no_email" nolabel="1" colspan="2" options="{'link': false, 'unlink': false}">
<tree editable="bottom">
<field name="name" required="1" readonly="1"/>
<field name="work_email" required="1"/>
</tree>
</field>
</group>
<footer>
<button name="action_send" type="object" string="Save &amp; Send Schedule"
class='btn-primary'/>
<button string="Discard" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="planning_send_action" model="ir.actions.act_window">
<field name="name">Send Planning By Email</field>
<field name="res_model">planning.send</field>
<field name="view_mode">form</field>
<field name="view_id" ref="planning_send_view_form"/>
<field name="target">new</field>
</record>
</odoo>