Fix access rights
- Add missing company rule for journal - Allow statement group to validate statement review1801002
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user