mirror of
https://github.com/bringout/oca-storage.git
synced 2026-04-19 02:52:02 +02:00
Initial commit: OCA Storage packages (17 packages)
This commit is contained in:
commit
7a380f05d3
659 changed files with 41828 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_storage_file_edit,storage_file edit,model_storage_file,base.group_system,1,1,1,1
|
||||
access_storage_file_read_public,storage_file public read,model_storage_file,,1,0,0,0
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2018 ACSONE SA/NV
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -->
|
||||
<odoo>
|
||||
<!--Security rule to allow public access on storage.file (depending on the storage.backend)-->
|
||||
<record id="ir_rule_storage_file_public" model="ir.rule">
|
||||
<field name="name">Storage file public</field>
|
||||
<field name="model_id" ref="model_storage_file" />
|
||||
<field name="groups" eval="[(4, ref('base.group_public'))]" />
|
||||
<field name="domain_force">[('backend_id.is_public', '=', True)]</field>
|
||||
<field name="perm_read" eval="True" />
|
||||
<field name="perm_write" eval="False" />
|
||||
<field name="perm_create" eval="False" />
|
||||
<field name="perm_unlink" eval="False" />
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue