summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/views/account_statement_view.xml
blob: 781921d500887966dff16e6d977a9c5b6509037b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_bank_statement_pos_session" model="ir.ui.view">
        <field name="name">view.bank.statement.pos.session</field>
        <field name="model">account.bank.statement</field>
        <field name="mode">primary</field>
        <field name="priority">1000</field>
        <field name="inherit_id" ref="account.view_bank_statement_form"/>
        <field name="arch" type="xml">
            <xpath expr="//button[@name='button_validate_or_action']" position="replace"/>
        </field>
    </record>

    <record id="view_account_bnk_stmt_cashbox" model="ir.ui.view">
        <field name="name">account.bnk_stmt_cashbox.form</field>
        <field name="model">account.bank.statement.cashbox</field>
        <field name="inherit_id" ref="account.view_account_bnk_stmt_cashbox"/>
        <field name="arch" type="xml">
          <xpath expr="//sheet" position="inside">
              <field name="is_a_template" invisible="1"/>
          </xpath>
        </field>
    </record>

    <record id="view_account_bnk_stmt_cashbox_footer" model="ir.ui.view">
      <field name="name">account.bnk_stmt_cashbox.form.close.modal</field>
      <field name="model">account.bank.statement.cashbox</field>
      <field name="inherit_id" ref="account.view_account_bnk_stmt_cashbox_footer"/>
      <field name="mode">primary</field>
      <field name="priority">1000</field>
      <field name="arch" type="xml">
          <xpath expr="//field[@name='cashbox_lines_ids']" position="before">
              <button name="set_default_cashbox" type="object" string="Set Default Cash Opening" />
          </xpath>
      </field>
    </record>

    <record id="view_account_journal_pos_user_form" model="ir.ui.view">
        <field name="name">account.journal.pos.user.form.inherit</field>
        <field name="model">account.journal</field>
        <field name="inherit_id" ref="account.view_account_journal_form"/>
        <field name="arch" type="xml">
            <xpath expr="//notebook[last()]" position="inside">
                <page string="Point of Sale" name="point_of_sale" invisible="1"/>
            </xpath>
        </field>
    </record>
</odoo>