diff --git a/golem_resource_pack/__manifest__.py b/golem_resource_pack/__manifest__.py
index 1d5a6e6..81dd541 100644
--- a/golem_resource_pack/__manifest__.py
+++ b/golem_resource_pack/__manifest__.py
@@ -20,7 +20,7 @@
'name': 'GOLEM resources pack',
'summary': 'GOLEM resources pack',
'description': ''' GOLEM resources pack ''',
- 'version': '10.0.0.0.1',
+ 'version': '10.0.0.0.2',
'category': 'GOLEM',
'author': 'Youssef El Ouahby, Fabien Bourgeois',
'license': 'AGPL-3',
diff --git a/golem_resource_pack/models/golem_resource_pack.py b/golem_resource_pack/models/golem_resource_pack.py
index 028c7af..ff77af1 100644
--- a/golem_resource_pack/models/golem_resource_pack.py
+++ b/golem_resource_pack/models/golem_resource_pack.py
@@ -36,3 +36,14 @@ class GolemResourcePack(models.Model):
string='User', default=lambda self: self.env.user)
partner_id = fields.Many2one('res.partner', string='On behalf of',
required=True, index=True)
+ state = fields.Selection([('canceled', 'Canceled'),
+ ('draft', 'Draft'),
+ ('confirmed', 'Confirmed'),
+ ('validated', 'Validated'),
+ ('rejected', 'Rejected')],
+ default='draft')
+
+ @api.multi
+ def state_confirm(self):
+ for pack in self:
+ pack.reservation_ids.state_confirm()
diff --git a/golem_resource_pack/views/golem_resource_pack_views.xml b/golem_resource_pack/views/golem_resource_pack_views.xml
index 6b0b0ad..526c5a7 100644
--- a/golem_resource_pack/views/golem_resource_pack_views.xml
+++ b/golem_resource_pack/views/golem_resource_pack_views.xml
@@ -52,10 +52,10 @@ along with this program. If not, see .
golem.resource.pack