添加功能
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
<attribute name="advanced_filter">True</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//tree" position="inside">
|
||||
<button class="oe_stat_button" name="all_put_department_change" string="部门变更" type="object"/>
|
||||
<header>
|
||||
<button class="oe_stat_button" name="all_put_department_change" string="部门变更" type="object"/>
|
||||
</header>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='total_employee']" position="attributes">
|
||||
<attribute name="column_invisible">1</attribute>
|
||||
@@ -43,7 +45,6 @@
|
||||
<field name="start_date"/>
|
||||
<field name="expiration_date"/>
|
||||
<button name="open_record" type="object" string="详情" class="oe_highlight"/>
|
||||
<button name="put_department_change" type="object" string="部门变更" class="oe_highlight"/>
|
||||
<!-- <field name="company_id" optional="show" required="1"/>-->
|
||||
</xpath>
|
||||
<field name="manager_id" position="attributes">
|
||||
@@ -59,11 +60,4 @@
|
||||
<field name="state">code</field>
|
||||
<field name="code">records.do_department_to_res_groups()</field>
|
||||
</record>
|
||||
<record id="yuthon_department_change_groups" model="ir.actions.server">
|
||||
<field name="name">批量提交部门变更</field>
|
||||
<field name="model_id" ref="hr.model_hr_department"/>
|
||||
<field name="binding_model_id" ref="hr.model_hr_department"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">records.all_put_department_change()</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user