mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 07:32:08 +02:00
18.0 vanilla
This commit is contained in:
parent
d72e748793
commit
0a7ae8db93
337 changed files with 399651 additions and 232598 deletions
12
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/email.py
Normal file
12
odoo-bringout-oca-ocb-base/odoo/_monkeypatches/email.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from email._policybase import _PolicyBase
|
||||
|
||||
|
||||
def patch_email():
|
||||
def policy_clone(self, **kwargs):
|
||||
for arg in kwargs:
|
||||
if arg.startswith("_") or "__" in arg:
|
||||
raise AttributeError(f"{self.__class__.__name__!r} object has no attribute {arg!r}")
|
||||
return orig_policy_clone(self, **kwargs)
|
||||
|
||||
orig_policy_clone = _PolicyBase.clone
|
||||
_PolicyBase.clone = policy_clone
|
||||
Loading…
Add table
Add a link
Reference in a new issue