Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corregir l'ordre de les dependències #171

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions poweremail_mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ def create(self, cursor, user, vals, context=None):
return res_id

_columns = {
'template_id': fields.many2one(
'poweremail.templates', 'Template', readonly=True,
),
'create_date': fields.datetime('Created date', readonly=True),
'write_date': fields.datetime('Date modified', readonly=True),
'pem_from':fields.char(
Expand Down
15 changes: 1 addition & 14 deletions poweremail_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
import tools
import report
import pooler
from .poweremail_mailbox import _priority_selection
from .poweremail_core import get_email_default_lang
from .poweremail_core import get_email_default_lang, _priority_selection
from .utils import Localizer


Expand Down Expand Up @@ -1217,18 +1216,6 @@ def remove_action_reference(self, cursor, uid, ids, context):
poweremail_templates()


class PoweremailMailbox(osv.osv):
_inherit = 'poweremail.mailbox'
_columns = {
'template_id': fields.many2one(
'poweremail.templates', 'Template', readonly=True,
),
}


PoweremailMailbox()


class poweremail_template_attachment(osv.osv):

_name = 'poweremail.template.attachment'
Expand Down