Ajout de securité et colorisation de la liste

This commit is contained in:
eloyoussef 2018-03-30 02:10:54 +02:00
parent a0721e6a1c
commit 1afbe75845
3 changed files with 7 additions and 3 deletions

View File

@ -20,12 +20,13 @@
'name': 'GOLEM resources pack', 'name': 'GOLEM resources pack',
'summary': 'GOLEM resources pack', 'summary': 'GOLEM resources pack',
'description': ''' GOLEM resources pack ''', 'description': ''' GOLEM resources pack ''',
'version': '10.0.0.0.2', 'version': '10.0.0.0.3',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Youssef El Ouahby, Fabien Bourgeois', 'author': 'Youssef El Ouahby, Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',
'application': True, 'application': True,
'installable': True, 'installable': True,
'depends': ['golem_resource'], 'depends': ['golem_resource'],
'data': ['views/golem_resource_pack_views.xml'] 'data': ['views/golem_resource_pack_views.xml',
'security/ir.model.access.csv']
} }

View File

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_golem_resource_pack_user,Access GOLEM Resource Pack User,model_golem_resource_pack,golem_base.group_golem_user,1,0,0,0
access_golem_resource_pack_manager,Access GOLEM Resource Pack Manager,model_golem_resource_pack,golem_base.group_golem_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_golem_resource_pack_user Access GOLEM Resource Pack User model_golem_resource_pack golem_base.group_golem_user 1 0 0 0
3 access_golem_resource_pack_manager Access GOLEM Resource Pack Manager model_golem_resource_pack golem_base.group_golem_manager 1 1 1 1

View File

@ -39,7 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="name">GOLEM Resource Pack Tree</field> <field name="name">GOLEM Resource Pack Tree</field>
<field name="model">golem.resource.pack</field> <field name="model">golem.resource.pack</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree> <tree colors="black: state=='draft'; blue: state=='validated'; gree : state=='validated'; grey: state=='canceled'; orange: state=='rejected'">
<field name="name" /> <field name="name" />
<field name="partner_id" /> <field name="partner_id" />
<field name="state" /> <field name="state" />