|
@@ -18,10 +18,34 @@
|
|
|
<field name="model">hr.payslip</field>
|
|
|
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
|
|
|
<field name="arch" type="xml">
|
|
|
- <xpath expr="//div[@class='oe_title']" position="before">
|
|
|
- <div class="oe_right oe_button_box payslip-payment-unity" attrs="{'invisible': [('state','!=','done')]}"></div>
|
|
|
- </xpath>
|
|
|
+ <!-- from -->
|
|
|
+ <form position="attributes">
|
|
|
+ <attribute name="create">0</attribute>
|
|
|
+ </form>
|
|
|
+ <!-- Payments pauslip -->
|
|
|
+ <field name="state" position="before">
|
|
|
+ <div class="payslip-payment-unity" attrs="{'invisible': [('state','!=','done')]}"></div>
|
|
|
+ </field>
|
|
|
+ <!-- Abono -->
|
|
|
+ <field name="credit_note" position="replace"></field>
|
|
|
+ <!-- Factura crédito -->
|
|
|
+ <xpath expr="//button[@name='refund_sheet']" position="replace"></xpath>
|
|
|
</field>
|
|
|
</record>
|
|
|
+
|
|
|
+ <!--Tree -->
|
|
|
+ <record id="view_eiru_payment_payslip_unity_tree" model="ir.ui.view">
|
|
|
+ <field name="name">view.eiru.payment.payslip.unity.tree</field>
|
|
|
+ <field name="model">hr.payslip</field>
|
|
|
+ <field name="inherit_id" ref="hr_payroll.view_hr_payslip_tree"/>
|
|
|
+ <field name="arch" type="xml">
|
|
|
+ <!-- tree -->
|
|
|
+ <tree position="attributes">
|
|
|
+ <attribute name="create">0</attribute>
|
|
|
+ </tree>
|
|
|
+ </field>
|
|
|
+ </record>
|
|
|
+
|
|
|
+
|
|
|
</data>
|
|
|
</openerp>
|