Skip to content
Extraits de code Groupes Projets
Valider 1cbcb6e2 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] many2one ondelete pour les champs rattachés à l'orgnisme

parent 007c840f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -785,7 +785,7 @@ class ResPartnerOrganizationType(models.Model):
comodel_name='res.partner.organization.type',
string='Type (parent)',
index=True,
ondelete='restrict')
ondelete='cascade')
parent_path = fields.Char(index=True)
child_ids = fields.One2many(
comodel_name='res.partner.organization.type',
......
......@@ -13,7 +13,7 @@ class ScopContributions(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
ondelete='cascade', index=True)
id_riga = fields.Integer("ID RIGA")
type_id = fields.Many2one(
'scop.contribution.type',
......
......@@ -13,7 +13,7 @@ class ScopLiasseFiscale(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
ondelete='cascade', index=True)
year = fields.Char("Année", index=True)
type_id = fields.Many2one(
'scop.liasse.fiscale.type',
......
......@@ -13,7 +13,7 @@ class ScopMembershipPeriod(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
ondelete='cascade', index=True)
id_riga = fields.Integer("ID RIGA")
type_id = fields.Many2one(
'scop.membership.type',
......
......@@ -14,7 +14,7 @@ class ScopPeriod(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_cooperative', '=', True)],
ondelete='restrict', required=True, index=True)
ondelete='cascade', required=True, index=True)
id_riga = fields.Integer("ID RIGA")
start = fields.Date('Début de validité', required=True,
default=fields.Date.today(), index=True)
......
......@@ -13,7 +13,7 @@ class ScopQuestionnaire(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
ondelete='cascade', index=True)
id_riga = fields.Integer("ID RIGA")
year = fields.Char("Année", index=True)
type_id = fields.Many2one(
......
......@@ -13,7 +13,7 @@ class ScopRevision(models.Model):
comodel_name='res.partner',
string='Organisme',
domain=[('is_company', '=', True)],
ondelete='restrict', index=True)
ondelete='cascade', index=True)
date = fields.Date("Date de révision", index=True)
delegate_id = fields.Many2one(
'res.users',
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter