-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from gisce/63380_add_view_sending_mails_menuitem
Add menuitem for mails with state equal to sending
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
migrations/5.0.25.1.0/post-0001_add_menu_item_for_sending_mail_state.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
from tools import config | ||
from oopgrade.oopgrade import load_data_records | ||
|
||
|
||
def up(cursor, installed_version): | ||
if not installed_version or config.updating_all: | ||
return | ||
load_data_records( | ||
cursor, 'poweremail', "poweremail_mailbox_view.xml", [ | ||
"action_poweremail_sending_tree", | ||
"action_poweremail_sending_tree_company", | ||
"menu_action_poweremail_sending_tree_company", | ||
"menu_action_poweremail_sending_tree" | ||
], mode='init') | ||
|
||
|
||
def down(cursor, installed_version): | ||
pass | ||
|
||
|
||
migrate = up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters