Fix allow_mail_archived_partner causing system notifications to send emails

This commit is contained in:
Kristof Bernaert
2026-01-26 00:44:43 +01:00
commit f64fbb5e06
25 changed files with 453 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
from . import models
+17
View File
@@ -0,0 +1,17 @@
{
"name": "Partner Hierarchical Name",
"version": "16.0.1.0.0",
"summary": "Show full partner hierarchy in dropdowns (Company / Delivery / Contact)",
"category": "Contacts",
"author": "Van Bernaert (Developer), Domus La Vila (Distributor)",
"license": "LGPL-3",
"depends": ["base"],
"installable": True,
"application": False,
"assets": {
"web.assets_backend": [
"partner_hierarchical_name/static/src/css/many2one_dropdown.css",
],
},
}
+1
View File
@@ -0,0 +1 @@
from . import res_partner
+25
View File
@@ -0,0 +1,25 @@
from odoo import models
class ResPartner(models.Model):
_inherit = "res.partner"
def name_get(self):
result = []
for partner in self:
names = []
current = partner
# Walk up the hierarchy
while current:
if current.name:
names.append(current.name)
current = current.parent_id
# Reverse to show top-down (L1 / L2 / L3)
full_name = " / ".join(reversed(names))
result.append((partner.id, full_name))
return result
@@ -0,0 +1,24 @@
/* jQuery UI autocomplete dropdown (authoritative override) */
.ui-autocomplete {
min-width: 650px !important;
max-width: 900px !important;
/* Float above form & right column */
z-index: 1100 !important;
/* Allow multi-line hierarchy */
white-space: normal !important;
}
/* Ensure individual items wrap */
.ui-autocomplete .ui-menu-item-wrapper {
white-space: normal !important;
word-break: break-word;
}
/* Prevent clipping by form containers */
.o_form_view,
.o_form_sheet,
.o_form_sheet_bg {
overflow: visible !important;
}