Fix allow_mail_archived_partner causing system notifications to send emails
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
Executable
+17
@@ -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",
|
||||
],
|
||||
},
|
||||
}
|
||||
Binary file not shown.
Executable
+1
@@ -0,0 +1 @@
|
||||
from . import res_partner
|
||||
Binary file not shown.
Binary file not shown.
+25
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user