mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update add delete data
This commit is contained in:
@@ -96,19 +96,14 @@ msgstr "菜单项具体操作设置"
|
|||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "Visit our website for more apps and Support. >>Sunpop.cn"
|
msgid "Visit our website for more apps and Support. http://www.sunpop.cn"
|
||||||
msgstr "访问我们的网站获取更多支持. >>Sunpop.cn"
|
msgstr "请访问我们的网站获取更多支持. http://www.sunpop.cn"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "White Label Setting"
|
msgid "White Label Setting"
|
||||||
msgstr "个性化Odoo设置"
|
msgstr "个性化Odoo设置"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model,name:app_odoo_customize.model_ir_ui_view
|
|
||||||
msgid "ir.ui.view"
|
|
||||||
msgstr "ir.ui.view"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config
|
#: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config
|
||||||
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config
|
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config
|
||||||
@@ -162,9 +157,99 @@ msgid "Show Powered by Odoo"
|
|||||||
msgstr "显示Powered by Odoo"
|
msgstr "显示Powered by Odoo"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_url
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
msgid "Documentation Url"
|
msgid "Data Clearing (Be careful to do that!)"
|
||||||
msgstr "文档链接"
|
msgstr "数据清理(请谨慎操作!)"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Sales"
|
||||||
|
msgstr "销售"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "POS"
|
||||||
|
msgstr "POS门店"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Purchase"
|
||||||
|
msgstr "采购"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "MRP"
|
||||||
|
msgstr "生产"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Inventory"
|
||||||
|
msgstr "库存"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Accounting"
|
||||||
|
msgstr "会计"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Base Models"
|
||||||
|
msgstr "基础模型数据"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Sales Order"
|
||||||
|
msgstr "删除所有报价单、销售单"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All POS Order"
|
||||||
|
msgstr "删除所有POS订单"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Purchase Order"
|
||||||
|
msgstr "删除所有采购单"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Manufacturing Order"
|
||||||
|
msgstr "删除所有生产单"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Move/Picking/Package/Lot"
|
||||||
|
msgstr "删除所有库存调拨/拣货/包装/批次数据"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Voucher/Invoice/Bill"
|
||||||
|
msgstr "删除所有收据/发票/账单"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Message"
|
||||||
|
msgstr "删除所有消息"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Delete All Workflow"
|
||||||
|
msgstr "删除所有工作流"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Please Confirm to delete the select data?"
|
||||||
|
msgstr "确认删除指定数据?"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Please confirm to delete the select data?"
|
||||||
|
msgstr "确认删除指定数据?"
|
||||||
|
|
||||||
|
#. module: app_odoo_customize
|
||||||
|
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
||||||
|
msgid "Please confirm to delete the select data?"
|
||||||
|
msgstr "Please confirm to delete the select data?"
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
#. module: app_odoo_customize
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_dev_url
|
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_dev_url
|
||||||
|
|||||||
@@ -1,160 +0,0 @@
|
|||||||
# Translation of Odoo Server.
|
|
||||||
# This file contains the translation of the following modules:
|
|
||||||
# * app_odoo_customize
|
|
||||||
#
|
|
||||||
msgid ""
|
|
||||||
msgstr ""
|
|
||||||
"Project-Id-Version: Odoo Server 10.0c\n"
|
|
||||||
"Report-Msgid-Bugs-To: \n"
|
|
||||||
"POT-Creation-Date: 2017-08-07 08:57+0000\n"
|
|
||||||
"PO-Revision-Date: 2017-08-07 08:57+0000\n"
|
|
||||||
"Last-Translator: Ivan Deng <300883@qq.com>, 2017\n"
|
|
||||||
"Language-Team: http://www.sunpop.cn \n"
|
|
||||||
"MIME-Version: 1.0\n"
|
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
|
||||||
"Content-Transfer-Encoding: \n"
|
|
||||||
"Language: zh_CN\n"
|
|
||||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_system_name
|
|
||||||
msgid "System Name"
|
|
||||||
msgstr "系统名称"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "Online Support"
|
|
||||||
msgstr "系统支持"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_lang
|
|
||||||
msgid "Show Quick Language Switcher"
|
|
||||||
msgstr "显示快速多语言切换"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_debug
|
|
||||||
msgid "Show Quick Debug"
|
|
||||||
msgstr "显示快速调试"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation
|
|
||||||
msgid "Show Documentation"
|
|
||||||
msgstr "显示文档"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_documentation_dev
|
|
||||||
msgid "Show Developer Documentation"
|
|
||||||
msgstr "显示开发者文档"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_support
|
|
||||||
msgid "Show Support"
|
|
||||||
msgstr "显示支持"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_account
|
|
||||||
msgid "Show My Account"
|
|
||||||
msgstr "显示我的帐户"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_enterprise
|
|
||||||
msgid "Show Enterprise Tag"
|
|
||||||
msgstr "显示升级企业版标签提醒"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_share
|
|
||||||
msgid "Show Share Dashboard"
|
|
||||||
msgstr "显示分享Odoo"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_show_poweredby
|
|
||||||
msgid "Show Powered by Odoo"
|
|
||||||
msgstr "显示Powered by Odoo"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_url
|
|
||||||
msgid "Documentation Url"
|
|
||||||
msgstr "文档链接"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_documentation_dev_url
|
|
||||||
msgid "Developer Documentation Url"
|
|
||||||
msgstr "开发者手册链接"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_support_url
|
|
||||||
msgid "Support Url"
|
|
||||||
msgstr "支持链接"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_account_title
|
|
||||||
msgid "My Odoo.com Account Title"
|
|
||||||
msgstr "我的帐户显示标题"
|
|
||||||
|
|
||||||
#. module: Base
|
|
||||||
#: model:ir.config_parameter,value:app_odoo_customize.app_account_title
|
|
||||||
#, python-format
|
|
||||||
msgid "My Online Account"
|
|
||||||
msgstr "我的帐号"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.config_parameter,value:app_odoo_customize.app_account_title
|
|
||||||
#, python-format
|
|
||||||
msgid "My Online Account"
|
|
||||||
msgstr "我的帐号"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.model.fields,field_description:app_odoo_customize.field_app_theme_config_settings_app_account_url
|
|
||||||
msgid "My Odoo.com Account Url"
|
|
||||||
msgstr "我的帐户链接"
|
|
||||||
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#. openerp-web
|
|
||||||
#: code:addons/app_odoo_customize/static/src/xml/customize_user_menu.xml:16
|
|
||||||
#, python-format
|
|
||||||
msgid "Developer Manual"
|
|
||||||
msgstr "开发者手册"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.actions.act_window,name:app_odoo_customize.action_app_theme_config
|
|
||||||
#: model:ir.ui.menu,name:app_odoo_customize.menu_app_theme_config
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "odooApp Settings"
|
|
||||||
msgstr "odooApp 设置"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "White Label Setting"
|
|
||||||
msgstr "个性化Odoo设置"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "Apply"
|
|
||||||
msgstr "应用"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "Cancel"
|
|
||||||
msgstr "取消"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "User Menu"
|
|
||||||
msgstr "用户菜单"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "Item to Show "
|
|
||||||
msgstr "显示/隐藏菜单项"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.view_app_theme_config_settings
|
|
||||||
msgid "User Menu Content"
|
|
||||||
msgstr "菜单项具体操作设置"
|
|
||||||
|
|
||||||
#. module: app_odoo_customize
|
|
||||||
#: model:ir.ui.view,arch_db:app_odoo_customize.replace_login
|
|
||||||
msgid "Powered by <span>odooApp</span>"
|
|
||||||
msgstr "技术支持 <span>odooApp</span>"
|
|
||||||
@@ -6,16 +6,19 @@ from openerp import api, fields, models, _
|
|||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class AppThemeConfigSettings(models.TransientModel):
|
class AppThemeConfigSettings(models.TransientModel):
|
||||||
_inherit = 'res.config.settings'
|
_inherit = 'res.config.settings'
|
||||||
_name = 'app.theme.config.settings'
|
_name = 'app.theme.config.settings'
|
||||||
|
|
||||||
_description = u"App Odoo Customize settings"
|
_description = u"App Odoo Customize settings"
|
||||||
app_system_name = fields.Char('System Name', help=u"Setup System Name,which replace Odoo")
|
app_system_name = fields.Char('System Name', help=u"Setup System Name,which replace Odoo")
|
||||||
app_show_lang = fields.Boolean('Show Quick Language Switcher', help=u"When enable,User can quick switch language in user menu")
|
app_show_lang = fields.Boolean('Show Quick Language Switcher',
|
||||||
|
help=u"When enable,User can quick switch language in user menu")
|
||||||
app_show_debug = fields.Boolean('Show Quick Debug', help=u"When enable,everyone login can see the debug menu")
|
app_show_debug = fields.Boolean('Show Quick Debug', help=u"When enable,everyone login can see the debug menu")
|
||||||
app_show_documentation = fields.Boolean('Show Documentation', help=u"When enable,User can visit user manual")
|
app_show_documentation = fields.Boolean('Show Documentation', help=u"When enable,User can visit user manual")
|
||||||
app_show_documentation_dev = fields.Boolean('Show Developer Documentation', help=u"When enable,User can visit development documentation")
|
app_show_documentation_dev = fields.Boolean('Show Developer Documentation',
|
||||||
|
help=u"When enable,User can visit development documentation")
|
||||||
app_show_support = fields.Boolean('Show Support', help=u"When enable,User can vist your support site")
|
app_show_support = fields.Boolean('Show Support', help=u"When enable,User can vist your support site")
|
||||||
app_show_account = fields.Boolean('Show My Account', help=u"When enable,User can login to your website")
|
app_show_account = fields.Boolean('Show My Account', help=u"When enable,User can login to your website")
|
||||||
app_show_enterprise = fields.Boolean('Show Enterprise Tag', help=u"Uncheck to hide the Enterprise tag")
|
app_show_enterprise = fields.Boolean('Show Enterprise Tag', help=u"Uncheck to hide the Enterprise tag")
|
||||||
@@ -28,7 +31,6 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
app_account_title = fields.Char('My Odoo.com Account Title')
|
app_account_title = fields.Char('My Odoo.com Account Title')
|
||||||
app_account_url = fields.Char('My Odoo.com Account Url')
|
app_account_url = fields.Char('My Odoo.com Account Url')
|
||||||
|
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def get_default_all(self, fields):
|
def get_default_all(self, fields):
|
||||||
ir_config = self.env['ir.config_parameter']
|
ir_config = self.env['ir.config_parameter']
|
||||||
@@ -44,8 +46,10 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
app_show_share = True if ir_config.get_param('app_show_share') == "True" else False
|
app_show_share = True if ir_config.get_param('app_show_share') == "True" else False
|
||||||
app_show_poweredby = True if ir_config.get_param('app_show_poweredby') == "True" else False
|
app_show_poweredby = True if ir_config.get_param('app_show_poweredby') == "True" else False
|
||||||
|
|
||||||
app_documentation_url = ir_config.get_param('app_documentation_url', default='http://www.sunpop.cn/documentation/user/10.0/en/index.html')
|
app_documentation_url = ir_config.get_param('app_documentation_url',
|
||||||
app_documentation_dev_url = ir_config.get_param('app_documentation_dev_url', default='http://www.sunpop.cn/documentation/10.0/index.html')
|
default='http://www.sunpop.cn/documentation/user/10.0/en/index.html')
|
||||||
|
app_documentation_dev_url = ir_config.get_param('app_documentation_dev_url',
|
||||||
|
default='http://www.sunpop.cn/documentation/10.0/index.html')
|
||||||
app_support_url = ir_config.get_param('app_support_url', default='http://www.sunpop.cn/trial/')
|
app_support_url = ir_config.get_param('app_support_url', default='http://www.sunpop.cn/trial/')
|
||||||
app_account_title = ir_config.get_param('app_account_title', default='My Online Account')
|
app_account_title = ir_config.get_param('app_account_title', default='My Online Account')
|
||||||
app_account_url = ir_config.get_param('app_account_url', default='http://www.sunpop.cn/my-account/')
|
app_account_url = ir_config.get_param('app_account_url', default='http://www.sunpop.cn/my-account/')
|
||||||
@@ -82,10 +86,175 @@ class AppThemeConfigSettings(models.TransientModel):
|
|||||||
ir_config.set_param("app_show_share", self.app_show_share or "False")
|
ir_config.set_param("app_show_share", self.app_show_share or "False")
|
||||||
ir_config.set_param("app_show_poweredby", self.app_show_share or "False")
|
ir_config.set_param("app_show_poweredby", self.app_show_share or "False")
|
||||||
|
|
||||||
ir_config.set_param("app_documentation_url", self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html")
|
ir_config.set_param("app_documentation_url",
|
||||||
ir_config.set_param("app_documentation_dev_url", self.app_documentation_dev_url or "http://www.sunpop.cn/documentation/10.0/index.html")
|
self.app_documentation_url or "http://www.sunpop.cn/documentation/user/10.0/en/index.html")
|
||||||
|
ir_config.set_param("app_documentation_dev_url",
|
||||||
|
self.app_documentation_dev_url or "http://www.sunpop.cn/documentation/10.0/index.html")
|
||||||
ir_config.set_param("app_support_url", self.app_support_url or "http://www.sunpop.cn/trial/")
|
ir_config.set_param("app_support_url", self.app_support_url or "http://www.sunpop.cn/trial/")
|
||||||
ir_config.set_param("app_account_title", self.app_account_title or "My Online Account")
|
ir_config.set_param("app_account_title", self.app_account_title or "My Online Account")
|
||||||
ir_config.set_param("app_account_url", self.app_account_url or "http://www.sunpop.cn/my-account/")
|
ir_config.set_param("app_account_url", self.app_account_url or "http://www.sunpop.cn/my-account/")
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_sales(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除销售单据
|
||||||
|
['sale.order.line', ],
|
||||||
|
['sale.order', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_pos(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除POS单据
|
||||||
|
['pos.order.line', ],
|
||||||
|
['pos.order', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_purchase(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除采购单据
|
||||||
|
['purchase.order.line', ],
|
||||||
|
['purchase.order', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_mrp(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除生产单据
|
||||||
|
['mrp.production.workcenter.line', ],
|
||||||
|
['mrp.production', ],
|
||||||
|
['mrp.production.product.line', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_inventory(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除库存单据
|
||||||
|
['procurement.order', ],
|
||||||
|
['stock.quant', ],
|
||||||
|
['stock.move', ],
|
||||||
|
['stock.pack.operation', ],
|
||||||
|
['stock.picking', ],
|
||||||
|
['stock.inventory.line', ],
|
||||||
|
['stock.inventory', ],
|
||||||
|
['stock.quant.package', ],
|
||||||
|
['stock.quant.move.rel', ],
|
||||||
|
['stock.production.lot', ],
|
||||||
|
['stock.fixed.putaway.strat', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_account(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除财务会计单据
|
||||||
|
['account.voucher.line', ],
|
||||||
|
['account.voucher', ],
|
||||||
|
['account.bank.statement', ],
|
||||||
|
['account.bank.statement.line', ],
|
||||||
|
['account.payment', ],
|
||||||
|
['account.analytic.line', ],
|
||||||
|
['account.invoice.line', ],
|
||||||
|
['account.invoice', ],
|
||||||
|
['account.partial.reconcile', ],
|
||||||
|
['account.move.line', ],
|
||||||
|
['account.move', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_message(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除消息数据
|
||||||
|
['mail.message', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|
||||||
|
@api.multi
|
||||||
|
def remove_workflow(self):
|
||||||
|
to_removes = [
|
||||||
|
# 清除工作流
|
||||||
|
['wkf.workitem', ],
|
||||||
|
['wkf.instance', ],
|
||||||
|
]
|
||||||
|
try:
|
||||||
|
for line in to_removes :
|
||||||
|
obj_name = line[0]
|
||||||
|
obj = self.pool.get(obj_name)
|
||||||
|
if obj and obj._table_exist:
|
||||||
|
sql = "delete from %s" % obj._table
|
||||||
|
self._cr.execute( sql)
|
||||||
|
|
||||||
|
except Exception, e:
|
||||||
|
raise Warning(e)
|
||||||
|
return True
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ You can config odoo, make it look like your own platform.
|
|||||||
11.Provide 236 country flags.
|
11.Provide 236 country flags.
|
||||||
12.Multi-language Support.
|
12.Multi-language Support.
|
||||||
13.Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)
|
13.Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)
|
||||||
|
14.Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.
|
||||||
|
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
Also helpful for training and support for your odoo end-user.
|
Also helpful for training and support for your odoo end-user.
|
||||||
@@ -38,6 +39,7 @@ http://www.sunpop.cn
|
|||||||
11.提供236个国家的国旗文件(部份需要自行设置文件名)
|
11.提供236个国家的国旗文件(部份需要自行设置文件名)
|
||||||
12.多语言版本
|
12.多语言版本
|
||||||
13.自定义登陆界面中的 Powered by Odoo
|
13.自定义登陆界面中的 Powered by Odoo
|
||||||
|
14.快速删除测试数据,支持模块包括:销售/POS门店/采购/生产/库存/会计/消息与工作流等.
|
||||||
|
|
||||||
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,找到 "App odoo Customize"模块,安装即可。
|
使用方法:将解压后的 app_odoo_customize 放到 odoo的 addons目录下,激活开发者模式,应用-->更新应用列表,找到 "App odoo Customize"模块,安装即可。
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
<li>11.Provide 236 country flags.</li>
|
<li>11.Provide 236 country flags.</li>
|
||||||
<li>12.Multi-language Support.</li>
|
<li>12.Multi-language Support.</li>
|
||||||
<li>13.Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)</li>
|
<li>13.Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)</li>
|
||||||
|
<li>14.Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Base Models.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
@@ -46,6 +47,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="oe_demo oe_screenshot">
|
<div class="oe_demo oe_screenshot">
|
||||||
<img src="set11.png" style="border:1px solid black"/>
|
<img src="set11.png" style="border:1px solid black"/>
|
||||||
|
</br>
|
||||||
|
<img src="set12.png" style="border:1px solid black"/>
|
||||||
<br/>
|
<br/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,6 +76,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="oe_row oe_spaced" style="max-width: 800px;">
|
||||||
|
<div class="oe_demo"
|
||||||
|
style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
|
||||||
|
<h2 class='oe_mt32'>Quick Delete test Data.</h2>
|
||||||
|
<p>You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.</p>
|
||||||
|
</div>
|
||||||
|
<div class="oe_demo oe_screenshot">
|
||||||
|
<img src="set3.png" style="border:1px solid black"/>
|
||||||
|
<br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
<section class="oe_container oe_dark">
|
<section class="oe_container oe_dark">
|
||||||
|
|||||||
BIN
app_odoo_customize/static/description/set12.png
Normal file
BIN
app_odoo_customize/static/description/set12.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
app_odoo_customize/static/description/set3.png
Normal file
BIN
app_odoo_customize/static/description/set3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<label string="Online Support"/>
|
<label string="Online Support"/>
|
||||||
<div>
|
<div>
|
||||||
<a href="http://www.sunpop.cn" target="_blank">Visit our website for more apps and Support. >>Sunpop.cn</a>
|
<a href="http://www.sunpop.cn" target="_blank">Visit our website for more apps and Support. http://www.sunpop.cn</a>
|
||||||
</div>
|
</div>
|
||||||
</group>
|
</group>
|
||||||
<group string="User Menu">
|
<group string="User Menu">
|
||||||
@@ -84,6 +84,45 @@
|
|||||||
<field name="app_account_url"/>
|
<field name="app_account_url"/>
|
||||||
</div>
|
</div>
|
||||||
</group>
|
</group>
|
||||||
|
<group string="Data Clearing (Be careful to do that!)">
|
||||||
|
<label string="Sales"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Sales Order" type="object" name="remove_sales"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="POS"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All POS Order" type="object" name="remove_pos" confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="Purchase"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Purchase Order" type="object" name="remove_purchase"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="MRP"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Manufacturing Order" type="object" name="remove_mrp"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="Inventory"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Move/Picking/Package/Lot" type="object" name="remove_inventory"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="Accounting"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Voucher/Invoice/Bill" type="object" name="remove_account"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
<label string="Base Models"/>
|
||||||
|
<div>
|
||||||
|
<button string="Delete All Message" type="object" name="remove_message"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
|
|
||||||
|
<button string="Delete All Workflow" type="object" name="remove_workflow"
|
||||||
|
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
||||||
|
</div>
|
||||||
|
</group>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user