forked from ingadhoc/account-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate_account_move_views.xml
More file actions
36 lines (28 loc) · 1.81 KB
/
validate_account_move_views.xml
File metadata and controls
36 lines (28 loc) · 1.81 KB
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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="validate_account_move_view" model="ir.ui.view">
<field name="name">Post Journal Entries</field>
<field name="model">validate.account.move</field>
<field name="inherit_id" ref="account.validate_account_move_view"/>
<field name="arch" type="xml">
<field name="force_post" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="force_post" position="after">
<field name="count_inv" invisible="1"/>
<field name="force_background" invisible="1"/>
</field>
<button name="validate_move" position="before">
<button string="Post in Background" name="action_background_post" type="object" default_focus="1" class="btn-primary" data-hotkey="a" help="With this, all the invoices selected to be validated will be marked and they will be validated one by one. If an error is found when validating any invoice, the automatic validation of the same will be unmarked and it will be notified via messaging"
invisible="abnormal_amount_partner_ids"/>
<button string="Confirm now" name="validate_move_confirm" type="object"
default_focus="1" class="btn-primary" data-hotkey="q" context="{'validate_analytic': True}"
confirm="Only use this option to post a small batch of invoices" invisible="force_background"
/>
</button>
<button name="validate_move" position="attributes">
<attribute name="invisible">not force_background</attribute>
</button>
</field>
</record>
</odoo>