Compare commits
4 Commits
0.1.3
...
e15799fb6e
| Author | SHA1 | Date | |
|---|---|---|---|
| e15799fb6e | |||
| 5cd3a56b3e | |||
| 82ce1fa21d | |||
| 515876e6c9 |
20
HISTORY.md
20
HISTORY.md
@@ -4,11 +4,31 @@ Changelog
|
|||||||
|
|
||||||
(unreleased)
|
(unreleased)
|
||||||
------------
|
------------
|
||||||
|
- 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
|
Fix
|
||||||
~~~
|
~~~
|
||||||
- More CI issues, refs NOISSUE. [Simon Diesenreiter]
|
- More CI issues, refs NOISSUE. [Simon Diesenreiter]
|
||||||
|
|
||||||
|
Other
|
||||||
|
~~~~~
|
||||||
|
|
||||||
|
|
||||||
0.1.2 (2025-05-24)
|
0.1.2 (2025-05-24)
|
||||||
------------------
|
------------------
|
||||||
|
|||||||
@@ -355,8 +355,6 @@ class Partner(models.Model):
|
|||||||
if self.company_name or self.parent_id:
|
if self.company_name or self.parent_id:
|
||||||
if not name and self.type in displayed_types:
|
if not name and self.type in displayed_types:
|
||||||
name = type_description[self.type]
|
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()
|
return name.strip()
|
||||||
|
|
||||||
@api.depends('is_company', 'name', 'parent_id.name', 'type', 'company_name', 'commercial_company_name')
|
@api.depends('is_company', 'name', 'parent_id.name', 'type', 'company_name', 'commercial_company_name')
|
||||||
@@ -479,12 +477,12 @@ class Partner(models.Model):
|
|||||||
'was never correctly set. If an existing contact starts working for a new '
|
'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 then a new contact should be created under that new '
|
||||||
'company. You can use the "Discard" button to abandon this change.')}
|
'company. You can use the "Discard" button to abandon this change.')}
|
||||||
if partner.type == 'contact' or self.type == 'contact':
|
#if partner.type == 'contact' or self.type == 'contact':
|
||||||
# for contacts: copy the parent address, if set (aka, at least one
|
# # for contacts: copy the parent address, if set (aka, at least one
|
||||||
# value is set in the address: otherwise, keep the one from the
|
# # value is set in the address: otherwise, keep the one from the
|
||||||
# contact)
|
# # contact)
|
||||||
#address_fields = self._address_fields()
|
# address_fields = self._address_fields()
|
||||||
#if any(self.parent_id[key] for key in address_fields):
|
# if any(self.parent_id[key] for key in address_fields):
|
||||||
# def convert(value):
|
# def convert(value):
|
||||||
# return value.id if isinstance(value, models.BaseModel) else value
|
# return value.id if isinstance(value, models.BaseModel) else value
|
||||||
# result['value'] = {key: convert(self.parent_id[key]) for key in address_fields}
|
# result['value'] = {key: convert(self.parent_id[key]) for key in address_fields}
|
||||||
|
|||||||
Reference in New Issue
Block a user