Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX][10.0] Missing multicompany security rule #93

Merged
merged 1 commit into from
Jul 4, 2017
Merged
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 l10n_nl_tax_statement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
'data': [
'security/ir.model.access.csv',
'security/tax_statement_security_rule.xml',
'data/report_layouts.xml',
'views/l10n_nl_vat_statement.xml',
'report/reports.xml',
Expand Down
11 changes: 11 additions & 0 deletions l10n_nl_tax_statement/security/tax_statement_security_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="tax_statement_security_rule" model="ir.rule">
<field name="name">NL Tax Statement multicompany</field>
<field name="model_id" ref="model_l10n_nl_vat_statement"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
</record>

</odoo>