Skip to content

Commit

Permalink
Merge PR OCA#101 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 22, 2020
2 parents c20f1c5 + 0b5d95b commit 3f6e38b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions account_financial_risk/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'account',
],
'data': [
'security/security.xml',
'views/account_financial_risk_view.xml',
'views/res_config_view.xml',
'views/res_partner_view.xml',
Expand Down
14 changes: 14 additions & 0 deletions account_financial_risk/security/security.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="group_overpass_partner_risk_exception" model="res.groups">
<field name="name">Partner Risk Manager</field>
<field name="category_id" ref="base.module_category_hidden"/>
<field name="comment">Can Overpass Partner Risk Exceptions</field>
</record>

<record model="res.groups" id="account.group_account_manager">
<field name="implied_ids" eval="[(4, ref('account_financial_risk.group_overpass_partner_risk_exception'))]"/>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class="oe_highlight"
name="button_continue"
type="object"
groups="account.group_account_manager"
groups="account_financial_risk.group_overpass_partner_risk_exception"
/>
<button string="Cancel"
class="oe_link"
Expand Down

0 comments on commit 3f6e38b

Please sign in to comment.