[IMP] base_exception: black, isort, prettify
parent
5b7ccb09b7
commit
240cb3f301
|
@ -68,10 +68,10 @@ class BaseExceptionMethod(models.AbstractModel):
|
||||||
|
|
||||||
def _get_main_records(self):
|
def _get_main_records(self):
|
||||||
"""
|
"""
|
||||||
Used in case we check exceptions on a record but write these
|
Used in case we check exceptions on a record but write these
|
||||||
exceptions on a parent record. Typical example is with
|
exceptions on a parent record. Typical example is with
|
||||||
sale.order.line. We check exceptions on some sale order lines but
|
sale.order.line. We check exceptions on some sale order lines but
|
||||||
write these exceptions on the sale order, so they are visible.
|
write these exceptions on the sale order, so they are visible.
|
||||||
"""
|
"""
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ class BaseExceptionMethod(models.AbstractModel):
|
||||||
|
|
||||||
def _detect_exceptions_by_py_code(self, rule):
|
def _detect_exceptions_by_py_code(self, rule):
|
||||||
"""
|
"""
|
||||||
Find exceptions found on self.
|
Find exceptions found on self.
|
||||||
"""
|
"""
|
||||||
domain = self._get_base_domain()
|
domain = self._get_base_domain()
|
||||||
records = self.search(domain)
|
records = self.search(domain)
|
||||||
|
@ -180,7 +180,7 @@ class BaseExceptionMethod(models.AbstractModel):
|
||||||
|
|
||||||
def _detect_exceptions_by_domain(self, rule):
|
def _detect_exceptions_by_domain(self, rule):
|
||||||
"""
|
"""
|
||||||
Find exceptions found on self.
|
Find exceptions found on self.
|
||||||
"""
|
"""
|
||||||
base_domain = self._get_base_domain()
|
base_domain = self._get_base_domain()
|
||||||
rule_domain = rule._get_domain()
|
rule_domain = rule._get_domain()
|
||||||
|
|
Loading…
Reference in New Issue