Commit f4187284 by François C.

Ajout changement statut suite validation souscription

parent f2d6ab89
......@@ -7,4 +7,5 @@ from . import shift_shift
from . import member_state_change
from . import shift_template
from . import shift_template_registration_line
from . import shift_template_registration
from . import shift_extension
# -*- coding: utf-8 -*-
from openerp import api, models
import logging
_logger = logging.getLogger(__name__)
class ShiftTemplateRegistration(models.Model):
_inherit = 'shift.template.registration'
@api.model
def create(self, vals):
super_res = super(ShiftTemplateRegistration, self.with_context(
dict(self.env.context, **{'creation_in_progress': True}))).create(vals)
if 'partner_id' in vals:
member = self.env['res.partner'].search([('id', '=', vals['partner_id'])])
member.recompute_member_states()
return super_res
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment