Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account_default_draft_move/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'data': ['account_view.xml',
'invoice_view.xml',
'res_config_view.xml',
'security/security_groups.xml',
],
'installable': True,
'active': False,
Expand Down
6 changes: 4 additions & 2 deletions account_default_draft_move/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<data>
<button name="button_validate" position="replace"/>
<button name="button_validate" position="replace">
<button name="button_validate" states="draft" string="Post" type="object" class="oe_highlight" groups="account_default_draft_move.group_validate_draft_move"/>
</button>
<button name="button_cancel" position="after">
<field name="update_posted" invisible="1"/>
</button>
Expand All @@ -19,4 +21,4 @@
</record>

</data>
</openerp>
</openerp>
10 changes: 10 additions & 0 deletions account_default_draft_move/security/security_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>

<openerp>
<data noupdate="0">
<record id="group_validate_draft_move" model="res.groups">
<field name="name">Validate draft moves</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>
</data>
</openerp>