Browse Source

Update agreement_legal/models/agreement.py

Co-Authored-By: kongrattapong <52144935+kongrattapong@users.noreply.github.com>
pull/346/head
Yves Goldberg 5 years ago
committed by GitHub
parent
commit
c01d0bfe58
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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,
}
res = self.copy(default=default_vals)
res.sections_ids.write({'agreement_id': res.id})
res.sections_ids.mapped('clauses_ids').write({'agreement_id': res.id})
return {
"res_model": "agreement",
"type": "ir.actions.act_window",

Loading…
Cancel
Save