fix: use link title as address title
This commit is contained in:
parent
b5ecb1ef00
commit
2834952fcb
1 changed files with 2 additions and 3 deletions
|
|
@ -57,9 +57,8 @@ class Address(Document):
|
|||
self.flags.linked = False
|
||||
|
||||
def autoname(self):
|
||||
if not self.address_title:
|
||||
if self.links:
|
||||
self.address_title = self.links[0].link_name
|
||||
if not self.address_title and self.links:
|
||||
self.address_title = self.links[0].link_title or self.links[0].link_name
|
||||
|
||||
if self.address_title:
|
||||
self.name = cstr(self.address_title).strip() + "-" + cstr(_(self.address_type)).strip()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue