Merge PR #422 into 12.0

Signed-off-by sbidoul
This commit is contained in:
OCA-git-bot
2020-01-17 10:47:25 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -210,7 +210,8 @@ class ContractContract(models.Model):
field.name in self.NO_SYNC,
)
):
self[field_name] = self.contract_template_id[field_name]
if self.contract_template_id[field_name]:
self[field_name] = self.contract_template_id[field_name]
@api.onchange('partner_id')
def _onchange_partner_id(self):