10 Commits

Author SHA1 Message Date
cb9f337d00 release: version 0.3.0 🚀
All checks were successful
Build Docker image / Create Release (push) Successful in 13s
Build Docker image / deploy (push) Successful in 24s
2025-06-04 21:53:53 +02:00
c991a54930 release: version 0.2.0 🚀 2025-06-04 21:53:51 +02:00
56992e2ccc feat: force release, refs NOISSUE 2025-06-04 21:53:51 +02:00
d83c7903eb release: version 0.2.0 🚀 2025-06-04 21:53:51 +02:00
c5c3fa8920 fix: no vat in address for individuals, refs NOISSUE 2025-06-04 21:53:51 +02:00
df755ea599 release: version 0.2.0 🚀 2025-06-04 21:53:51 +02:00
e15799fb6e release: version 0.2.0 🚀
All checks were successful
Build Docker image / Create Release (push) Successful in 13s
Build Docker image / deploy (push) Successful in 20s
2025-05-27 21:41:28 +02:00
5cd3a56b3e feat: disable adding company name at beginning of customer name, refs NOISSUE 2025-05-27 21:41:24 +02:00
82ce1fa21d release: version 0.1.4 🚀
All checks were successful
Build Docker image / Create Release (push) Successful in 7s
Build Docker image / deploy (push) Successful in 18s
2025-05-24 21:27:01 +02:00
515876e6c9 fix: broken source code indentation, refs NOISSUE 2025-05-24 21:26:57 +02:00
3 changed files with 45 additions and 13 deletions

View File

@@ -5,10 +5,42 @@ Changelog
(unreleased)
------------
Fix
~~~
- No vat in address for individuals, refs NOISSUE. [Simon Diesenreiter]
Other
~~~~~
- Feat: force release, refs NOISSUE. [Simon Diesenreiter]
0.2.0 (2025-05-27)
------------------
- Feat: disable adding company name at beginning of customer name, refs
NOISSUE. [Simon Diesenreiter]
0.1.4 (2025-05-24)
------------------
Fix
~~~
- Broken source code indentation, refs NOISSUE. [Simon Diesenreiter]
Other
~~~~~
0.1.3 (2025-05-24)
------------------
Fix
~~~
- More CI issues, refs NOISSUE. [Simon Diesenreiter]
Other
~~~~~
0.1.2 (2025-05-24)
------------------

View File

@@ -1 +1 @@
0.1.3
0.3.0

View File

@@ -355,8 +355,6 @@ class Partner(models.Model):
if self.company_name or self.parent_id:
if not name and self.type in displayed_types:
name = type_description[self.type]
if not self.is_company:
name = f"{self.commercial_company_name or self.sudo().parent_id.name}, {name}"
return name.strip()
@api.depends('is_company', 'name', 'parent_id.name', 'type', 'company_name', 'commercial_company_name')
@@ -479,15 +477,15 @@ class Partner(models.Model):
'was never correctly set. If an existing contact starts working for a new '
'company then a new contact should be created under that new '
'company. You can use the "Discard" button to abandon this change.')}
if partner.type == 'contact' or self.type == 'contact':
# for contacts: copy the parent address, if set (aka, at least one
# value is set in the address: otherwise, keep the one from the
# contact)
#address_fields = self._address_fields()
#if any(self.parent_id[key] for key in address_fields):
# def convert(value):
# return value.id if isinstance(value, models.BaseModel) else value
# result['value'] = {key: convert(self.parent_id[key]) for key in address_fields}
#if partner.type == 'contact' or self.type == 'contact':
# # for contacts: copy the parent address, if set (aka, at least one
# # value is set in the address: otherwise, keep the one from the
# # contact)
# address_fields = self._address_fields()
# if any(self.parent_id[key] for key in address_fields):
# def convert(value):
# return value.id if isinstance(value, models.BaseModel) else value
# result['value'] = {key: convert(self.parent_id[key]) for key in address_fields}
return result
@api.onchange('parent_id')
@@ -897,7 +895,9 @@ class Partner(models.Model):
if partner._context.get('show_email') and partner.email:
name = f"{name} <{partner.email}>"
if partner._context.get('show_vat') and partner.vat:
name = f"{name} {partner.vat}"
if partner.is_company:
# only shot vat in addresses of companies, not individuals
name = f"{name} {partner.vat}"
partner.display_name = name.strip()