-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount_view.xml
executable file
·44 lines (41 loc) · 1.48 KB
/
account_view.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="reconcile_account_payment_form">
<field name="name">reconcile.account.payment.form</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form"></field>
<field name="arch" type="xml">
<field name="state" position="before">
<button name="btn_add_invoices" type="object"
string="Agregar Facturas"
attrs="{'invisible': [('state','not in',['draft']),('payment_type','not in',['inbound'])]}" />
<!-- button name="btn_payment_reconcile" type="object"
string="Seleccionar Facturas"
attrs="{'invisible': [('state','not in',['posted']),('payment_type','not in',['inbound'])]}" / -->
</field>
<xpath expr="//sheet" position="inside">
<notebook>
<page string="Facturas">
<br />
<group>
<field name="reconcile_ids">
<tree create="0" edit="0">
<field name="move_id" />
<field name="amount" sum = "total amount"/>
<field name="amount_residual" sum = "total residual" />
<field name="amount_currency" sum = "total currency"/>
<field name="amount_residual_currency" sum = "total amount"/>
<field name="account_id" />
<field name="currency_id" />
</tree>
</field>
</group>
<group>
<field name="exchange_move_id" readonly="1" />
</group>
</page>
</notebook>
</xpath>
</field>
</record>
</odoo>