mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix product log
This commit is contained in:
@@ -22,7 +22,7 @@ class MrpWorkCenter(models.Model):
|
|||||||
child_all_count = fields.Integer(
|
child_all_count = fields.Integer(
|
||||||
'Indirect Surbordinates Count',
|
'Indirect Surbordinates Count',
|
||||||
compute='_compute_child_all_count', store=False)
|
compute='_compute_child_all_count', store=False)
|
||||||
level = fields.Integer('Level', compute='_compute_level', inverse=False, readonly=True, store=True)
|
level = fields.Integer('Level', compute='_compute_level', inverse=False, readonly=True, default='1', store=True)
|
||||||
|
|
||||||
@api.depends('child_ids.child_all_count')
|
@api.depends('child_ids.child_all_count')
|
||||||
def _compute_child_all_count(self):
|
def _compute_child_all_count(self):
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo 14,13 Customize OEM(Boost, Data reset)',
|
'name': 'odoo 14,13 Customize OEM(Boost, Data reset)',
|
||||||
'version': '13.21.07.27',
|
'version': '13.21.08.04',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
@@ -79,6 +79,7 @@
|
|||||||
36. Add refresh translate for multi module.
|
36. Add refresh translate for multi module.
|
||||||
37. Easy noupdate manage for External Identifiers(xml_id)
|
37. Easy noupdate manage for External Identifiers(xml_id)
|
||||||
38. Add Draggable Dialog enable.
|
38. Add Draggable Dialog enable.
|
||||||
|
39. Only erp manager can see debug menu..
|
||||||
|
|
||||||
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.
|
||||||
@@ -124,6 +125,7 @@
|
|||||||
36. 可为多个模块强制更新翻译
|
36. 可为多个模块强制更新翻译
|
||||||
37. noupdate字段的快速管理,主要针对 xml_id
|
37. noupdate字段的快速管理,主要针对 xml_id
|
||||||
38. 对话框可拖拽
|
38. 对话框可拖拽
|
||||||
|
39. 只有系统管理员可以操作快速debug
|
||||||
""",
|
""",
|
||||||
'images': ['static/description/banner.gif'],
|
'images': ['static/description/banner.gif'],
|
||||||
'depends': [
|
'depends': [
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
||||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||||
<h3>Update: v13.20.11.09</h3>
|
<h3>Update: v13.21.08.04</h3>
|
||||||
|
<p>39. Only erp manager can see debug menu..</p>
|
||||||
<p>38. Add Draggable Dialog enable.</p>
|
<p>38. Add Draggable Dialog enable.</p>
|
||||||
<p>37. Easy noupdate manage for External Identifiers(xml_id).</p>
|
<p>37. Easy noupdate manage for External Identifiers(xml_id).</p>
|
||||||
<h3>Update: v13.20.08.29</h3>
|
<h3>Update: v13.20.08.29</h3>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ odoo.define('app_odoo_customize.UserMenu', function (require) {
|
|||||||
* editing its preferences, accessing the documentation, logging out...
|
* editing its preferences, accessing the documentation, logging out...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const session = require('web.session');
|
||||||
var UserMenu = require('web.UserMenu');
|
var UserMenu = require('web.UserMenu');
|
||||||
//避免错误,要再定义
|
//避免错误,要再定义
|
||||||
var documentation_url = 'https://www.sunpop.cn';
|
var documentation_url = 'https://www.sunpop.cn';
|
||||||
@@ -23,6 +24,7 @@ odoo.define('app_odoo_customize.UserMenu', function (require) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
var session = this.getSession();
|
var session = this.getSession();
|
||||||
var lang_list = '';
|
var lang_list = '';
|
||||||
|
this.is_manager = false;
|
||||||
|
|
||||||
self._rpc({
|
self._rpc({
|
||||||
model: 'res.lang',
|
model: 'res.lang',
|
||||||
@@ -101,6 +103,10 @@ odoo.define('app_odoo_customize.UserMenu', function (require) {
|
|||||||
* @override
|
* @override
|
||||||
* 由于odoo11 没传ev到事件,所以要重载
|
* 由于odoo11 没传ev到事件,所以要重载
|
||||||
*/
|
*/
|
||||||
|
async willStart() {
|
||||||
|
await this._super(...arguments);
|
||||||
|
this.is_manager = await session.user_has_group('base.group_erp_manager');
|
||||||
|
},
|
||||||
start: function () {
|
start: function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
return this._super.apply(this, arguments).then(function () {
|
return this._super.apply(this, arguments).then(function () {
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
<t t-extend="UserMenu.Actions">
|
<t t-extend="UserMenu.Actions">
|
||||||
<t t-jquery="a[data-menu='documentation']" t-operation="before">
|
<t t-jquery="a[data-menu='documentation']" t-operation="before">
|
||||||
<switch-lang/>
|
<switch-lang/>
|
||||||
<a role="menuitem" href="#" data-menu="debug" class="dropdown-item">Activate the developer mode</a>
|
<a t-if="widget.is_manager" role="menuitem" href="#" data-menu="debug" class="dropdown-item">Activate the developer mode</a>
|
||||||
<a role="menuitem" href="#" data-menu="debugassets" class="dropdown-item">Activate the developer mode (with assets)</a>
|
<a t-if="widget.is_manager" role="menuitem" href="#" data-menu="debugassets" class="dropdown-item">Activate the developer mode (with assets)</a>
|
||||||
<a role="menuitem" href="#" data-menu="quitdebug" class="dropdown-item">Deactivate the developer mode</a>
|
<a t-if="widget.is_manager" role="menuitem" href="#" data-menu="quitdebug" class="dropdown-item">Deactivate the developer mode</a>
|
||||||
<div role="separator" class="dropdown-divider"/>
|
<div role="separator" class="dropdown-divider"/>
|
||||||
<a role="menuitem" href="#" data-menu="documentation_dev" class="dropdown-item">Developer Manual</a>
|
<a role="menuitem" href="#" data-menu="documentation_dev" class="dropdown-item">Developer Manual</a>
|
||||||
</t>
|
</t>
|
||||||
|
|||||||
Reference in New Issue
Block a user