mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix seq
add translatetion fix
This commit is contained in:
@@ -2,3 +2,4 @@
|
||||
|
||||
import ir_ui_view
|
||||
import app_theme_config_settings
|
||||
import base_language_install
|
||||
|
||||
21
app_odoo_customize/models/base_language_install.py
Normal file
21
app_odoo_customize/models/base_language_install.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2017 Jarvis (www.odoomod.com)
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
|
||||
class BaseLanguageInstall(models.TransientModel):
|
||||
_inherit = "base.language.install"
|
||||
|
||||
@api.multi
|
||||
def lang_install(self):
|
||||
self.ensure_one()
|
||||
self.env.cr.execute("""
|
||||
delete from ir_translation
|
||||
where (name='ir.module.module,shortdesc'
|
||||
or name='ir.module.module,description'
|
||||
or name='ir.module.module,summary')
|
||||
and lang=%s
|
||||
""", (self.lang,))
|
||||
return super(BaseLanguageInstall, self).lang_install()
|
||||
Reference in New Issue
Block a user