summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/account_move_line.xml
blob: 838596c824144e5010db12649db6f8f53c70c0b4 (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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <data>
        <record id="view_move_form_inherit" model="ir.ui.view">
            <field name="name">account.move.form.inherit</field>
            <field name="model">account.move</field>
            <field name="inherit_id" ref="account.view_move_form"/>
            <field name="arch" type="xml">
                <!-- <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']" position="attributes">
                    <attribute name="attrs">{'readonly': [('refund_id','!=',False)]}</attribute>
                </xpath> -->
                <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='currency_id']" position="before">
                    <field name="is_required" invisible="1"/>
                </xpath>
                <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='analytic_tag_ids']" position="attributes">
                    <attribute name="groups"/>
                    <attribute name="options">{'no_create': True}</attribute>
                </xpath>
                <xpath expr="//field[@name='line_ids']/tree/field[@name='partner_id']" position="attributes">
                    <attribute name="options">{'no_create': True, 'no_open': True}</attribute>
                </xpath>
            </field>
        </record>
    </data>
    <data>
        <record id="action_gl_reconcile_server" model="ir.actions.server">
            <field name="name">Reconcile Selected</field>
            <field name="model_id" ref="account.model_account_move_line"/>
            <field name="binding_model_id" ref="account.model_account_move_line"/>
            <field name="binding_view_types">list</field>
            <field name="state">code</field>
            <field name="code">
                action = records.action_gl_reconcile()
            </field>
        </record>
    </data>
</odoo>