fix superbar

This commit is contained in:
ivan deng
2019-04-21 17:02:40 +08:00
parent 76131e179a
commit dc0de9fa30
7 changed files with 12 additions and 34 deletions

View File

@@ -1,17 +0,0 @@
[options]
addons_path = d:\odoo10\app-odoo, d:\odoo11-ent\source\odoo\addons
data_dir = odoofile
db_host = 127.0.0.1
db_maxconn = 64
db_name = False
db_user = odoo
db_password = odoo
db_port = 5432
loglevel = debug
bin_path = runtime\win32\wkhtmltopdf
pg_path = runtime\pgsql\bin
db_template = template1
longpolling_port = 8072
xmlrpc_port = 8011

View File

@@ -26,10 +26,9 @@ class Department(models.Model):
manager_name = fields.Char(related="manager_id.name", store=True)
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
tools.image_resize_images(vals)
@api.model
def create(self, vals):
tools.image_resize_images(vals)
return super(Department, self).create(vals_list)
@api.multi

View File

@@ -16,7 +16,7 @@
# description:
{
'name': '12 Ready!! App Odoo Customize(Backend Debranding Title,Language,Documentation,Quick Debug,Clear Data)',
'version': '11.19.04.17',
'version': '11.19.04.21',
'author': 'Sunpop.cn',
'category': 'Productivity',
'website': 'http://www.sunpop.cn',

View File

@@ -4,6 +4,7 @@
<record id="view_app_theme_config_settings" model="ir.ui.view">
<field name="name">App Odoo Customize Settings</field>
<field name="model">res.config.settings</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<form string="odooApp Customize Settings" class="oe_form_configuration">
<header>
@@ -166,6 +167,7 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_app_theme_config_settings"/>
<field name="target">inline</field>
</record>

View File

@@ -24,10 +24,9 @@ class ProductCategory(models.Model):
'Indirect Surbordinates Count',
compute='_compute_child_all_count', store=False)
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
tools.image_resize_images(vals)
@api.model
def create(self, vals):
tools.image_resize_images(vals)
return super(ProductCategory, self).create(vals_list)
@api.multi

View File

@@ -24,10 +24,9 @@ class Location(models.Model):
'Indirect Surbordinates Count',
compute='_compute_child_all_count', store=False)
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
tools.image_resize_images(vals)
@api.model
def create(self, vals):
tools.image_resize_images(vals)
return super(Location, self).create(vals_list)
@api.multi

4
s.bat
View File

@@ -1,4 +0,0 @@
cd \odoo11-x64
s.bat
ping -n 5 127.0.0.1>nul
cd \odoo10\app-odoo