Code Monkey home page Code Monkey logo

muk_web's Introduction

License: LGPL v3 Website

MuK Odoo Web Modules

This set of modules offers improvments and extensions to the Odoo web client.

Installation

To install this module, you need to:

Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the "Update Apps List" link. Now install the module by clicking on the install button.

Upgrade

To upgrade this module, you need to:

Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.

muk_web's People

Contributors

keshrath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

muk_web's Issues

Uncaught Error: Couldn't find method 'preview' in widget

image

Current Behaviour:

I'm facing this error while clicking for preview on attachment. An attachment gets download automatically (doesn't preview) and then error above.

Expected Behaviour:

While clicking on preview, an attahcment should open to preview (like works fine in attachment kanban view).

Note: I'm using pdf file only for whole schenario in odoo-10.0. Feature works fine in attachment kanban view.
The place i'm getting error at the moment is partner's attachment tab(customized).

Thank You.

Access error preview ms office

Hi, when I view a .doc file or a .ppt file,an error occured and nothing showed up in preview dialog.By reading the source code, I found that using requets call the file url cause an access error, the '/web/content/' route can't sense my logged in user, it excute the function as Public user.My temporary solution is add the Public user to Group Document User,any better solution without security issue?

Code with problem in /muk_web_preview_msoffice/controllers/main.py, line 86:
response = requests.get(url)

MuK Preview Attachment (Odoo 10)

When you try to preview a file on slides, it does not recognize the file type and extension. In the rest of the applications of the program if the preview works.

captura de pantalla 2018-02-06 a las 12 24 34

Unable to update Muk Web Client Refresh

The following error raise up after updating the muk_web_client_refresh from v. 11.0.1.0.4 to v. 11.0.2.1.0
Odoo 11
Windows 10 64x

Error:
Odoo Server Error

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 1036, in _validate_fields
check(self)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 330, in check_xml
view_def = view.read_combined(['arch'])
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 714, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 664, in apply_view_inheritance
source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 663, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 641, in apply_inheritance_specs
self.raise_view_error(
("Element '%s' cannot be located in parent view") % tag, inherit_id)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 503, in raise_view_error
raise ValueError(message)
ValueError: Element '

' cannot be located in parent view

Error context:
View res.config.settings.view.form
[view_id: 4036, xml_id: n/a, model: res.config.settings, parent_id: 247]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 741, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 651, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_model.py", line 1476, in _update
record = record.create(values)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 398, in create
return super(View, self).create(self._compute_defaults(values))
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\component_event\models\base.py", line 93, in create
record = super(Base, self).create(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3377, in create
self._fields[key].determine_inverse(record)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 1071, in determine_inverse
getattr(records, self.inverse)()
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 266, in _inverse_arch
view.write(data)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\component_event\models\base.py", line 100, in write
result = super(Base, self).write(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3086, in write
self._write(old_vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3252, in _write
self._validate_fields(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 1040, in validate_fields
raise ValidationError("%s\n\n%s" % (
("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error while validating constraint\n\nElement '

' cannot be located in parent view\n\nError context:\nView res.config.settings.view.form\n[view_id: 4036, xml_id: n/a, model: res.config.settings, parent_id: 247]', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\pycompat.py", line 87, in reraise
raise value
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 936, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 515, in response_wrap
response = f(*args, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 931, in call_kw
return self._call_kw(model, method, args, kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 923, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_upgrade
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\module\module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\module\module.py", line 602, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\module\module.py", line 541, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\loading.py", line 339, in load_modules
force, status, report, loaded_modules, update_module)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\loading.py", line 242, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\loading.py", line 94, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\stock_scanner\load_scenario.py", line 229, in scenario_convert_file
kind=kind, report=report, pathname=pathname)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 788, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 849, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 748, in parse
exc_info[2]
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 741, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\convert.py", line 651, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_model.py", line 1476, in _update
record = record.create(values)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 398, in create
return super(View, self).create(self._compute_defaults(values))
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\component_event\models\base.py", line 93, in create
record = super(Base, self).create(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3377, in create
self._fields[key].determine_inverse(record)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\fields.py", line 1071, in determine_inverse
getattr(records, self.inverse)()
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 266, in _inverse_arch
view.write(data)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\base\ir\ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\component_event\models\base.py", line 100, in write
result = super(Base, self).write(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3086, in write
self._write(old_vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 3252, in _write
self._validate_fields(vals)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\models.py", line 1040, in validate_fields
raise ValidationError("%s\n\n%s" % (
("Error while validating constraint"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error while validating constraint

Element '

' cannot be located in parent view

Error context:
View res.config.settings.view.form
[view_id: 4036, xml_id: n/a, model: res.config.settings, parent_id: 247]
None" while parsing file:/c:/program%20files%20(x86)/odoo%2011.0/server/odoo/addons/muk_web_client_refresh/views/res_config_settings_view.xml:23, near

res.config.settings.view.form
res.config.settings












Error: QWeb2: Template 'muk_web_theme.AppsBarMenu' not found

Preview MS Office Module Issues - Odoo 10

I have installed this module in Odoo 10 and I get this issues:

  • Excel files are OK in the preview
  • Word and Power Point files generate the following error:

PDF.js v1.7.225 (build: 17d135f)
Mensaje: Unexpected server response (415) while retrieving PDF "http://34.220.243.124:8069/web/preview/converter/msoffice?url=http%3A%2F%2F34.220.243.124%3A8069%2Fweb%2Fcontent%3Fmodel%3Dmuk_dms.file%26filename%3DDIAZ%2BSALINAS_MAYO19%2B1%2B(1).doc%26filename_field%3Dname%26field%3Dcontent%26id%3D5%26download%3Dtrue".

I have tested unoconv command from console and PDF archives are generated for Excel without any problem, for Word I get a PDF file, but with this warnings:

W: Unknown node under /registry/extlang: deprecated
W: Unknown node under /registry/grandfathered: comments
W: Unknown node under /registry/grandfathered: comments

Finally for .ppt unoconv works fine (like Excel) but with .pptx generates an error and the PDF file is not generated.

:1: parser error : Document is empty
PK
^
:1: parser error : Document is empty
PK
^
:1: parser error : Document is empty
PK
^
unoconv: UnoException during import phase:
The document 'file:///home/ubuntu/SIG.pptx' could not be opened.

Versions

Name: pdfconv
Version: 1.0.11
Summary: PDF Converter
Home-page: https://github.com/keshrath/pdfconv
Author: Mathias Markl
Author-email: [email protected]
License: GPLv2
Location: /usr/local/lib/python2.7/dist-packages
Requires:

Name: requests
Version: 2.11.1
Summary: Python HTTP for Humans.
Home-page: http://python-requests.org
Author: Kenneth Reitz
Author-email: [email protected]
License: Apache 2.0
Location: /usr/local/lib/python2.7/dist-packages
Requires:
Required-by: ebaysdk

Package: unoconv
State: installed
Automatically installed: no
Version: 0.7-1.1
Priority: extra
Section: universe/text
Maintainer: Ubuntu Developers [email protected]
Architecture: all
Uncompressed Size: 332 k
Depends: python3, python3-uno (>= 4.0)
Recommends: libreoffice-writer, libreoffice-draw, libreoffice-calc, libreoffice-impress
Conflicts: odt2txt (<= 0.3-1)
Description: converter between LibreOffice document formats
This package provides a commandline utility which can convert from any document format that LibreOffice can import to any document format it can export. It uses
LibreOffice's UNO bindings for non-interactive conversion of documents.

Supported document formats include Open Document format, MS Word, MS Office Open/MS OOXML, PDF, HTML, XHTML, RTF, DocBook, and more.
Homepage: http://dag.wieers.com/home-made/unoconv/

Thanks.

[12][muk_web_theme] Error when trying to uninstall module

Using newest version of odoo12, muk_base and muk_web

Odoo Server Error
Traceback (most recent call last):
  File "/home/gk/Software/odoo12/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/gk/Software/odoo12/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/gk/Software/odoo12/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/gk/Software/odoo12/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/home/gk/Software/odoo12/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/gk/Software/odoo12/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/gk/Software/odoo12/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/gk/Software/odoo12/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/home/gk/Software/odoo12/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/gk/Software/odoo12/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/gk/Software/odoo12/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/gk/Software/odoo12/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/home/gk/Software/odoo12/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/gk/Software/odoo12/odoo/addons/base/wizard/base_module_uninstall.py", line 60, in action_uninstall
    return modules.button_immediate_uninstall()
  File "<decorator-gen-64>", line 2, in button_immediate_uninstall
  File "/home/gk/Software/odoo12/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
    return method(self, *args, **kwargs)
  File "/home/gk/Software/odoo12/odoo/addons/base/models/ir_module.py", line 577, in button_immediate_uninstall
    return self._button_immediate_function(type(self).button_uninstall)
  File "/home/gk/Software/odoo12/odoo/addons/base/models/ir_module.py", line 552, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/home/gk/Software/odoo12/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/gk/Software/odoo12/odoo/modules/loading.py", line 473, in load_modules
    getattr(py_module, uninstall_hook)(cr, registry)
  File "<string>", line 31, in _uninstall_reset_changes
NameError: name 'self' is not defined

Preview MSOffice - Odoo 11: "Missing PDF" (415 error code, all dependences satisfied, manual conversion works)

Hello developers!

I have not been able to correctly operate the Preview MSOffice module for doc/docx or ptt/pttx files in any Odoo 11 installation (all in Debian 9 stretch, both native installation and through Docker). I use the latest version of the module.

When I try to preview a document with those extensions, I see an error in the previewer, indicating the version of PDF.js and "Missing PDF" with the URL Odoo was trying to load.

muk preview msoffice error

Also, if I open directly in the browser the URL obtained by the previewer, I get the following error:

"415 Unsupported Media Type
The server does not support the media type transmitted in the request. "

When I try to manually convert a file of the mentioned extensions through unoconv, it works correctly. As if I use the conversion/export module of MUK, it also works well to convert to PDF, therefore, it does not seem a technical problem of the conversion to PDF as such, because it works in one way or another.
The problem seems to be with the URL of the PDF document received for preview.

Has anyone had this problem and been able to solve it? Is it a problem with the Preview MSOffice module driver?

Thanks in advance.

MUK Web Theme : broken SCSS compilation

Good morning,

It seems that recent commits (maybe 1470c46 ?) leads to broken web_theme installation. I've made a video with fresh database to show what happen. We got the following error after install, on browser refresh :

Error: no mixin named mk-full-screen-sections

       Backtrace:
       	stdin:8148, in mixin `@content`
       	OCB/addons/web/static/lib/bootstrap/scss/mixins/_breakpoints.scss:75, in mixin `media-breakpoint-down`
       	stdin:8131
        on line 8148 of stdin
>> 				@include mk-full-screen-sections();
   -------------^

Video is here :

muk_web_theme_issue_2018-12-24

Error preview files Office

When viewing a .doc file. docx error message appears
PDF.js v1.7.225 (build: 17d135f)
Message: Unexpected server response (415) while retrieving PDF "http://ip-server:8069/web/preview/converter/msoffice?url=%2Fweb%2Fcontent%3Fmodel%3Dmuk_dms.file%26filename%3DUna%2Bprueba%2Bmuy%2Bsencilla.dot%26filename_field%3Dname%26field%3Dcontent%26id%3D7%26download%3Dtrue".
image

Odoo 11 with all the dependencies installed
muk_dms v11.0.1.3.3
muk_web_preview_msoffice v11.0.1.1.0
ubuntu 14.06

[12.0] MuK is not showing up

On fresh install (Debian 9, Odoo 12.0) MuK Backend Theme is not showing up in Apps.

  • Files (muk_utils, muk_web_theme, muk_web_utils) have been copied to addons/
  • /etc/odoo/odoo.conf have the right addons dir.
  • File permissions should be right as they match the other addons.
  • Apps list have been refreshed in developer mode.

Cannot open .doc file in demo instance

Hi Guys,

I've downloaded the module and install in my local machine but cannot review .doc file.
After that, I also tried in your instance but there was the same result.
image
I've print the log to review the extension name and this is the result when I opened a .doc file
image

image
Please help me to check.

Regards,
Binh Nguyen

undefined variable

In muk_dms/models/dms_base.py, line 407:
if not access and raise_exception:
variable "access" is undefined and cause an error.

Web Refresh stops working

Odoo 10
The web refresh stops working in all views after server is restarted or Odoo restarted. Sometimes I can delete the rule and add it back in and it will work. Most of the time I have to uninstall the module and reinstall and it works again until server or Odoo is restarted.

Uncaught ReferenceError: SimpleBar is not defined

inherit addons cannot applied to refresh view

I want to use your muk_web_client and muk_web_client_refresh addons to refresh view when someone has an operation on one view.I try your addons and it work when the addons are original odoo addons like your example.When i try your addons on the addons that i inherit from original odoo addons,it can't work and it happens to the original odoo addons that applied to your rule also can't work even if it used to work.

[12.0] Website customize + multisite

I've got an issue in this case :

  • Muk branding app installed
  • Muk web branding app installed
  • Multi company set

=> When I try to set new color to the default theme, I can select a color with the color picker, but, after validating, nothing happens.
When the multi company is not set, all works perfectly.

Tested on odoo runbot, there is no issue.

[muk_web_theme#12.0] Undefined variable: "$o-theme-font-number" on Login Page

Hello,

I have just integrated the muk_web_theme module v12.0 whithin my Odoo 12 app. It looks so great! However, I got this error on the login page (your_domain:8069/web/login/):

`The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Error: Undefined variable: "$o-theme-font-number".
on line 2534 of /stdin

$o-theme-font-number,

----^
This error occured while compiling the bundle 'web.assets_frontend' containing:
- /web/static/lib/bootstrap/scss/_functions.scss
- /web/static/lib/bootstrap/scss/_mixins.scss
- /web/static/src/scss/utils.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/primary_variables.scss
- /muk_web_theme/static/src/scss/colors.scss
- /web_editor/static/src/scss/web_editor.variables.scss
- /mail/static/src/scss/variables.scss
- /portal/static/src/scss/primary_variables.scss
- /web/static/src/scss/secondary_variables.scss
- /web/static/src/scss/bootstrap_overridden_frontend.scss
- /web_editor/static/src/scss/bootstrap_overridden.scss
- /portal/static/src/scss/bootstrap_overridden.scss
- /web/static/src/scss/import_bootstrap_part1.scss
- /web/static/src/scss/bs_mixins_overrides.scss
- /web/static/src/scss/import_bootstrap_part2.scss
- /web/static/lib/tempusdominus/tempusdominus.scss
- /web/static/src/scss/navbar_mobile.scss
- /web_editor/static/src/scss/web_editor.common.scss
- /portal/static/src/scss/bootstrap.extend.scss
- /portal/static/src/scss/portal.scss
- /payment/static/src/scss/portal_payment.scss
- /payment/static/src/scss/payment_form.scss
- /sale/static/src/scss/sale_portal.scss
- /website/static/src/scss/website.scss
- /website/static/src/scss/website.ui.scss
- /website/static/src/scss/website.zoomodoo.scss`

Thank you

[12.0]MUK Web utils : impossible change background in CMS

Good afternoon,

It seems that the addon muk_web_utils causes bad feature on CMS web editor. When installed (and it's auto installed), you can not change element background color, it always come back to white. If you uninstall the addon manually, you can change background (as you can with stock Odoo 12 CE).

No error in frontend log sadly, maybe related to the custom snippet added in web utils ?

Thanks.

Error trying to save brand colour settings

I notice the following error in the logs when trying to modify the brand colours on the General Settings page:

addons/muk_web_theme/models/res_config_settings.py", line 114, in <lambda> ).filtered(lambda v: v.arch.find(url) >= 0) NameError: name 'url' is not defined

Any advice?

Dependencies for muk_web_preview_msoffice

What I should install or what I can do for use the module muk_web_preview_msoffice with ODOO 10?

aptitude search unoconv
i unoconv installed - converter between LibreOffice document formats

pip install pdfconv comtypes unoconv
Requirement already satisfied: pdfconv in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: comtypes in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: unoconv in /usr/local/lib/python2.7/dist-packages

invoke-rc.d odoo restart

But I still have errors:

PDF.js v1.7.225 (assembly: 17d135f)
Message: Unexpected server response (500) while retrieving PDF "https://erp.****.com/web/preview/converter/msoffice?url=%2Fweb%2Fcontent%2F439%3Fdownload%3Dtrue".

werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 180, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 168, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 184, in application
return werkzeug.contrib.fixers.ProxyFix(application_unproxied)(environ, start_response)
File "/usr/lib/python2.7/dist-packages/werkzeug/contrib/fixers.py", line 148, in call
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 1308, in call
return self.dispatch(environ, start_response)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 1282, in call
return self.app(environ, start_wrapped)
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 591, in call
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 1481, in dispatch
result = ir_http._dispatch()
File "/usr/lib/python2.7/dist-packages/odoo/addons/website/models/ir_http.py", line 218, in _dispatch
resp = super(Http, cls)._dispatch()
File "/usr/lib/python2.7/dist-packages/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch
return super(IrHttp, cls)._dispatch()
File "/usr/lib/python2.7/dist-packages/odoo/addons/utm/models/ir_http.py", line 20, in _dispatch
response = super(IrHttp, cls)._dispatch()
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
return cls._handle_exception(e)
File "/usr/lib/python2.7/dist-packages/odoo/addons/website/models/ir_http.py", line 270, in _handle_exception
return super(Http, cls)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
return request._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 768, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
result = request.dispatch()
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 827, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 935, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/var/lib/odoo/.local/share/Odoo/addons/10.0/muk_web_preview_msoffice/controllers/main.py", line 72, in convert_msoffice
return self._get_response(url, export_filename)
File "/var/lib/odoo/.local/share/Odoo/addons/10.0/muk_web_preview_msoffice/controllers/main.py", line 97, in _get_response
except (ImportError, IOError, WindowsError) as error:
NameError: global name 'WindowsError' is not defined

[12.0] Unistalling Branding apps

I'm trying to unistall MuK Branding & Muk Web Branding, and I've got this issue :

Erreur:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/OCB/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/OCB/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/OCB/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/OCB/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/OCB/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/OCB/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/OCB/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/OCB/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/OCB/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/OCB/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo/OCB/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/OCB/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/OCB/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/OCB/odoo/addons/base/wizard/base_module_uninstall.py", line 60, in action_uninstall
    return modules.button_immediate_uninstall()
  File "<decorator-gen-64>", line 2, in button_immediate_uninstall
  File "/opt/odoo/OCB/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
    return method(self, *args, **kwargs)
  File "/opt/odoo/OCB/odoo/addons/base/models/ir_module.py", line 578, in button_immediate_uninstall
    return self._button_immediate_function(type(self).button_uninstall)
  File "/opt/odoo/OCB/odoo/addons/base/models/ir_module.py", line 553, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/opt/odoo/OCB/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo/OCB/odoo/modules/loading.py", line 473, in load_modules
    getattr(py_module, uninstall_hook)(cr, registry)
  File "<string>", line 37, in _uninstall_rebrand_system
NameError: name 'api' is not defined

Web Refresh - Kanban view

Odoo 10
Hello does Web refresh work with Kanban View? It works great with tree view but cant seem to get it to work in Kanban view.

ModuleNotFoundError: No module named 'models'

2017-12-13 23:53:21,406 6720 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 193, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 181, in execute
application_iter = app(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/service/server.py", line 252, in app
return self.app(e, s)
File "/home/alex/Odoo/odoo_11/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/home/alex/Odoo/odoo_11/odoo/http.py", line 1297, in call
self.load_addons()
File "/home/alex/Odoo/odoo_11/odoo/http.py", line 1319, in load_addons
m = import('odoo.addons.' + module)
File "/home/alex/Odoo/odoo_11/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 22, in

ModuleNotFoundError: No module named 'models'

[11.0 CE] image preview blank in attachment

I have muk_preview, muk_preview_image and muk_preview_attachments installed without errors. Previewing a pdf or odt file from the attachment drop down works perfectly, but previewing a .jpg or .png results in a blank (white) preview screen. The image file can be downloaded from the download button in the viewer correctly, just no preview.

Tested on latest Firefox, Chrome, Brave (and Safari) all on Mac OS X 10.11.6

image preview - blank screen
screen shot 2019-01-21 at 8 07 19 pm

pdf preview works fine
screen shot 2019-01-21 at 8 09 11 pm
Not sure where to start troubleshooting. Any suggestions?

MS-Office DOC and DOCX preview gives an error in Odoo11

Hi,

I am facing an issue at the moment, where I am unable to generate a DOC and a DOCX preview after installing and using MuK Preview MS Office package. All other common file extensions such as XLS, XLSX, PDF, ODS and ODT all work fine. The issue only arises with DOC and DOCX files.

I have successfully converted DOC and DOCX files at the command line as follows:

unoconv -f pdf astrid.docx

My installation process is as follows:

pip3 install cachetools
pip3 install --extra-index-url https://nexus.mukit.at/repository/odoo/simple odoo11-addon-muk-utils
sudo apt-get install unoconv
git clone https://github.com/muk-it/muk_web.git
git clone https://github.com/keshrath/pdfconv.git
cd pdfconv/
sudo python setup.py install

Install all Muk Modules in Odoo

reboot

The error in the Odoo logs are as follows:

tail /var/log/odoo/odoo-server.log

File "/usr/lib/python3/dist-packages/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 936, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/muk_web_preview_msoffice/controllers/main.py", line 45, in preview_msoffice
status, headers, content = get_response(url)
File "/usr/lib/python3/dist-packages/odoo/addons/muk_utils/tools/http.py", line 60, in get_response
return exception.response.status_code, exception.response.headers, exception.response.reason
AttributeError: 'NoneType' object has no attribute 'status_code'

Can you please advise what the issue could be and a possible solution. I can provide further logs if required

Kind regards

Richard

[12.0] Backend error > Compilation failed

Hello,
I've got an issue on Odoo community 12.0


Error: Undefined variable: "$mk-appbar-background".
        on line 8555 of stdin
>>     background-color: $mk-appbar-background;
   ----------------------^
This error occured while compiling the bundle 'web.assets_backend' containing:
    - /web/static/lib/bootstrap/scss/_functions.scss
    - /web/static/lib/bootstrap/scss/_mixins.scss
    - /web/static/src/scss/utils.scss
    - /web/static/src/scss/bs_mixins_overrides.scss
    - /muk_web_theme/static/src/scss/mixins.scss
    - /web/static/src/scss/primary_variables.scss
    - /muk_web_theme/static/src/scss/colors.custom.muk_web_theme._assets_primary_variables.scss
    - /web_editor/static/src/scss/web_editor.variables.scss
    - /mail/static/src/scss/variables.scss
    - /portal/static/src/scss/primary_variables.scss
    - /website/static/src/scss/primary_variables.scss
    - /website/static/src/scss/options/colors/user_color_palette.scss
    - /website/static/src/scss/options/colors/user_theme_color_palette.scss
    - /web/static/src/scss/secondary_variables.scss
    - /website/static/src/scss/secondary_variables.scss
    - /account/static/src/scss/variables.scss
    - /web/static/src/scss/bootstrap_overridden.scss
    - /muk_web_theme/static/src/scss/variables.scss
    - /web_editor/static/src/scss/bootstrap_overridden.scss
    - /web/static/src/scss/import_bootstrap_part1.scss
    - /web/static/src/scss/bs_mixins_overrides.scss
    - /web/static/src/scss/import_bootstrap_part2.scss
    - /web/static/src/scss/bootstrap_review.scss
    - /web/static/src/scss/webclient_extra.scss
    - /web/static/src/scss/webclient_layout.scss
    - /web/static/src/scss/webclient.scss
    - /web/static/src/scss/domain_selector.scss
    - /web/static/src/scss/model_field_selector.scss
    - /web/static/src/scss/progress_bar.scss
    - /web/static/src/scss/dropdown.scss
    - /web/static/src/scss/dropdown_extra.scss
    - /web/static/src/scss/tooltip.scss
    - /web/static/src/scss/debug_manager.scss
    - /web/static/src/scss/control_panel.scss
    - /web/static/src/scss/fields.scss
    - /web/static/src/scss/fields_extra.scss
    - /web/static/src/scss/views.scss
    - /web/static/src/scss/pivot_view.scss
    - /web/static/src/scss/graph_view.scss
    - /web/static/src/scss/form_view.scss
    - /web/static/src/scss/form_view_extra.scss
    - /web/static/src/scss/list_view.scss
    - /web/static/src/scss/list_view_extra.scss
    - /web/static/src/scss/kanban_dashboard.scss
    - /web/static/src/scss/kanban_examples_dialog.scss
    - /web/static/src/scss/kanban_column_progressbar.scss
    - /web/static/src/scss/kanban_view.scss
    - /web/static/src/scss/kanban_view_mobile.scss
    - /web/static/src/scss/web_calendar.scss
    - /web/static/src/scss/search_view.scss
    - /web/static/src/scss/search_view_mobile.scss
    - /web/static/src/scss/dropdown_menu.scss
    - /web/static/src/scss/search_view_extra.scss
    - /web/static/src/scss/data_export.scss
    - /base/static/src/scss/onboarding.scss
    - /web/static/src/scss/base_settings.scss
    - /web/static/src/scss/report_backend.scss
    - /base_import/static/src/scss/base_import.scss
    - /web_diagram/static/src/scss/diagram_view.scss
    - /web_editor/static/src/scss/web_editor.common.scss
    - /web_editor/static/src/scss/web_editor.backend.scss
    - /muk_web_utils/static/src/scss/variables.scss
    - /muk_web_utils/static/src/scss/switch.scss
    - /muk_web_utils/static/src/scss/dropzone.scss
    - /muk_web_utils/static/src/scss/module.scss
    - /muk_web_utils/static/src/scss/color.scss
    - /muk_web_utils/static/src/scss/image.scss
    - /muk_web_utils/static/src/scss/copy.scss
    - /muk_web_utils/static/src/scss/share.scss
    - /muk_web_utils/static/src/scss/notification.scss
    - /muk_web_theme/static/libs/simplebar/simplebar.css
    - /muk_web_theme/static/src/scss/layout.scss
    - /muk_web_theme/static/src/scss/navbar.scss
    - /muk_web_theme/static/src/scss/apps.scss
    - /muk_web_theme/static/src/scss/appsbar.scss
    - /muk_web_theme/static/src/scss/control_panel.scss
    - /muk_web_theme/static/src/scss/list_view.scss
    - /muk_web_theme/static/src/scss/form_view.scss
    - /muk_web_theme/static/src/scss/fields.scss
    - /mail/static/src/scss/announcement.scss
    - /mail/static/src/scss/discuss.scss
    - /mail/static/src/scss/abstract_thread_window.scss
    - /mail/static/src/scss/thread_window.scss
    - /mail/static/src/scss/composer.scss
    - /mail/static/src/scss/chatter.scss
    - /mail/static/src/scss/followers.scss
    - /mail/static/src/scss/thread.scss
    - /mail/static/src/scss/systray.scss
    - /mail/static/src/scss/mail_activity.scss
    - /mail/static/src/scss/activity_view.scss
    - /mail/static/src/scss/kanban_view.scss
    - /mail/static/src/scss/attachment_box.scss
    - /website/static/src/scss/website.backend.scss
    - /website_theme_install/static/src/scss/website_theme_install.scss
    - /note/static/src/scss/note.scss
    - /project/static/src/scss/project_dashboard.scss
    - /hr/static/src/scss/hr.scss
    - /calendar/static/src/scss/calendar.scss
    - /sales_team/static/src/scss/sales_team_dashboard.scss
    - /account/static/src/scss/account_reconciliation.scss
    - /account/static/src/scss/account_journal_dashboard.scss
    - /account/static/src/scss/account_dashboard.scss
    - /account/static/src/scss/section_and_note_backend.scss
    - /payment/static/src/scss/payment_acquirer.scss
    - /google_calendar/static/src/scss/google_calendar.scss
    - /sale/static/src/scss/sale_onboarding.scss
    - /sale/static/src/scss/product_configurator.scss
    - /sale_timesheet/static/src/scss/sale_timesheet.scss
    - /stock/static/src/scss/stock_traceability_report.scss
    - /mass_mailing/static/src/scss/mass_mailing.scss
    - /web_settings_dashboard/static/src/scss/dashboard.scss

[12][muk_web_theme] this.$menu_apps_sidebar.renderScrollBar is not a function

No navigation after Muk Backend Theme install Odoo 12

Running into an issue where no backend exists and all backend modules report the same error.

`Error:
Uncaught TypeError: Cannot read property 'text' of undefined

http://server/web/content/1084-f19c043/web.assets_backend.js:851
Traceback:
TypeError: Cannot read property 'text' of undefined
at Class._updateMenuBrand [as _super] (http://server/web/content/1084-f19c043/web.assets_backend.js:851:415)
at Class._updateMenuBrand (http://server/web/content/1084-f19c043/web.assets_backend.js:3417:1124)
at Class._updateMenuBrand (http://server/web/content/862-cd93538/web.assets_common.js:3540:371)
at Class.change_menu_section (http://server/web/content/1084-f19c043/web.assets_backend.js:850:108)
at Class.trigger (http://server/web/content/862-cd93538/web.assets_common.js:3639:180)
at Class.trigger (http://server/web/content/862-cd93538/web.assets_common.js:3645:148)
at Class._on_app_clicked_done (http://server/web/content/1084-f19c043/web.assets_backend.js:568:757)
at Object. (http://server/web/content/1084-f19c043/web.assets_backend.js:568:532)
at fire (http://server/web/content/862-cd93538/web.assets_common.js:796:299)
at Object.fireWith [as resolveWith] (http://server/web/content/862-cd93538/web.assets_common.js:801:198)
opera snapshot
`

Could not install v12

I could not install the module. I install the folder in addons but in odoo it does not appear to install after updating the applications.

tempsnip

I have to install the other 2 folders for the theme? (muk_web & muk_base)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.