v14-facturacionelectronica/l10n_co_hr_e_payroll/views/hr_payslip_views.xml

51 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="hr_payslip_form" model="ir.ui.view">
<field name="model">hr.payslip</field>
<field name="inherit_id" ref="hr_avancys.hr_payslip_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="dian_documents"
string="DIAN Documents"
groups="l10n_co_hr_e_payroll.group_view_dian_documents">
<group>
<field name="send_epayroll_to_dian"
groups="l10n_co_hr_e_payroll.group_view_send_epayroll_to_dian_field"/>
<field name="access_token" invisible="1"/>
<field name="is_accepted_rejected"
groups="l10n_co_hr_e_payroll.group_view_accepted_rejected_fields"/>
<field name="accepted_rejected_datetime"
groups="l10n_co_hr_e_payroll.group_view_accepted_rejected_fields"/>
<label for="dian_document_state"/>
<div>
<field name="dian_document_state" readonly="1"/>
<button name="action_restart_dian_document_state"
type="object"
string="Restart DIAN Document State"/>
</div>
</group>
<group>
<button name="action_set_dian_document"
type="object"
string="Set DIAN Document"
attrs="{'invisible': [('state', '!=', 'done')]}"/>
<button name="action_process_dian_document"
type="object"
string="Send DIAN Document"
attrs="{'invisible': [('state', '!=', 'done')]}"/>
</group>
<group>
<field name="dian_document_ids" mode="tree" readonly="1">
<tree>
<button name="go_to_dian_document" type="object" string="DIAN Document"/>
<field name="create_date"/>
<field name="state"/>
</tree>
</field>
</group>
</page>
</xpath>
</field>
</record>
</odoo>