Skip to content
Extraits de code Groupes Projets
Valider c96df321 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

[FIX] Error on default project cout

parent ebd69ffc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -536,7 +536,7 @@ class AdefpatCoutAV(models.Model):
@api.model
def _default_consultant_id(self):
return self.env['res.partner.consultants.project'].search([
('project_id', '=', self.env.context.get('params').get('id')),
('project_id', '=', self.env.context.get('default_project_id')),
('is_selected', '=', True)
], limit=1)
......
......@@ -71,7 +71,7 @@
<field name="nb_jour_theorique_tot_av"/>
</group>
</group>
<field name="cout_av_ids" widget="one2many" >
<field name="cout_av_ids" widget="one2many" context="{'default_project_id': active_id}">
<tree string="Coûts Avenants" editable="top">
<field name="module"/>
<field name="consultant_id"/>
......@@ -106,7 +106,7 @@
<tr>
<td>
Honoraire d'intervenant :
<field name="cout_av_ids" widget="one2many">
<field name="cout_av_ids" widget="one2many" context="{'default_project_id': active_id}">
<tree string="Coûts" editable="top">
<field name="module"/>
<field name="consultant_id"/>
......
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