Browse Source

[FIX] Issue #342

pull/346/head
Yves Goldberg 6 years ago
parent
commit
e50ffb447f
  1. 2
      agreement_legal/models/agreement.py

2
agreement_legal/models/agreement.py

@ -350,7 +350,7 @@ class Agreement(models.Model):
"stage_id": self.env.ref("agreement_legal.agreement_stage_new").id, "stage_id": self.env.ref("agreement_legal.agreement_stage_new").id,
} }
res = self.copy(default=default_vals) res = self.copy(default=default_vals)
res.sections_ids.clauses_ids.write({'agreement_id': res.id})
res.sections_ids.write({'agreement_id': res.id})
return { return {
"res_model": "agreement", "res_model": "agreement",
"type": "ir.actions.act_window", "type": "ir.actions.act_window",

Loading…
Cancel
Save