mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-24 13:21:46 +00:00
14a109dc87
[ADD] l10n_ch_zip [ADD] l10n_ch_bank_statement_import_postfinance
67 lines
2.4 KiB
XML
67 lines
2.4 KiB
XML
<?xml version="1.0" ?>
|
|
<flectra>
|
|
<data>
|
|
<record id="action_slip_all" model="ir.actions.act_window">
|
|
<field name="name">Payment Slip</field>
|
|
<field name="res_model">l10n_ch.payment_slip</field>
|
|
<field name="domain">[('invoice_id', '=', active_id)]</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="invoice_form_add_isr_ref">
|
|
<field name="name">account.invoice.form.isr.ref</field>
|
|
<field name="model">account.move</field>
|
|
<field name="type">form</field>
|
|
<field name="inherit_id" ref="l10n_ch.isr_invoice_form"/>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<xpath expr="//button[@name='action_invoice_sent']" position="after">
|
|
<button type="object" string="Print CH ISR" name="print_isr" attrs="{'invisible': ['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/>
|
|
<button type="object" string="Print CH ISR" name="print_isr" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//button[@name='isr_print']" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</xpath>
|
|
|
|
<xpath expr="field[@name='tax_line_id']" position="before">
|
|
<group colspan="4">
|
|
<field name="isr_reference" colspan="4"/>
|
|
<button type="action" string="Open Payment Slips" groups="base.group_system" name="%(l10n_ch_payment_slip.action_slip_all)d" attrs="{'invisible': ['|', ('type', '!=', 'out_invoice'), ('isr_reference', '=', False)]}"/>
|
|
</group>
|
|
</xpath>
|
|
</form>
|
|
|
|
</field>
|
|
</record>
|
|
|
|
<record id="pay_slip_form" model="ir.ui.view">
|
|
<field name="name">pay slip form</field>
|
|
<field name="model">l10n_ch.payment_slip</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Payment Slip">
|
|
<group>
|
|
<field name="reference"/>
|
|
<field name="move_line_id"/>
|
|
<field name="amount_total"/>
|
|
<field name="scan_line"/>
|
|
<field name="slip_image"/>
|
|
<field name="a4_pdf"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="pay_slip_lsit" model="ir.ui.view">
|
|
<field name="name">pay slip lsit</field>
|
|
<field name="model">l10n_ch.payment_slip</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Payment Slip">
|
|
<field name="reference"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
|
|
</flectra>
|