Fix access rights

- Add missing company rule for journal
- Allow statement group to validate statement

review1801002
This commit is contained in:
Cédric Krier
2013-11-25 12:29:09 +01:00
parent 9c5af299b3
commit a0fc86bb6b
2 changed files with 14 additions and 0 deletions
+9
View File
@@ -51,5 +51,14 @@ this repository contains the full copyright notices and license terms. -->
<field name="perm_delete" eval="True"/>
</record>
<record model="ir.rule.group" id="rule_group_statement_journal">
<field name="model" search="[('model', '=', 'account.statement.journal')]"/>
<field name="global_p" eval="True"/>
</record>
<record model="ir.rule" id="rule_statement_journal1">
<field name="domain">[('company', '=', user.company.id if user.company else None)]</field>
<field name="rule_group" ref="rule_group_statement_journal"/>
</record>
</data>
</tryton>
+5
View File
@@ -174,6 +174,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="button" ref="statement_validate_button"/>
<field name="group" ref="account.group_account"/>
</record>
<record model="ir.model.button-res.group"
id="statement_validate_button_group_account">
<field name="button" ref="statement_validate_button"/>
<field name="group" ref="group_statement"/>
</record>
<record model="ir.model.button" id="statement_post_button">
<field name="name">post</field>