Skip to content

Commit

Permalink
関連担当者修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kazushi-eguchi committed Jun 9, 2022
1 parent 3917150 commit 0c19034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rtw_crm_role/models/crm_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def _get_name(self):
for rec in self:
if rec.role:
print("in")
rec.name = rec.contact_id.name + "(" + dict(rec._fields['role'].selection).get(rec.role) + ")"
# rec.name = rec.contact_id.name + "(" + dict(rec._fields['role'].selection).get(rec.role) + ")"
rec.name = rec.contact_id.name
else:
rec.name = rec.contact_id.name
2 changes: 1 addition & 1 deletion rtw_crm_role/views/crm_lead.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</div>
<div class="d-flex flex-column justify-content-between">
<field name="contact_id"/>
<field name="name"/>
<field name="role"/>
<field name="company_id"/>
</div>
Expand Down

0 comments on commit 0c19034

Please sign in to comment.