mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 08:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
18
odoo-bringout-oca-ocb-mail/mail/tools/alias_error.py
Normal file
18
odoo-bringout-oca-ocb-mail/mail/tools/alias_error.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from dataclasses import dataclass, field
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AliasError:
|
||||
"""Alias error description.
|
||||
|
||||
Arguments:
|
||||
code (str): error code
|
||||
message (str): translated user message
|
||||
is_config_error (bool): whether the error was caused by a mis-configured alias or not
|
||||
"""
|
||||
code: str
|
||||
message: str = field(default='', compare=False)
|
||||
is_config_error: bool = field(default=False, compare=False)
|
||||
Loading…
Add table
Add a link
Reference in a new issue