Coder Social home page Coder Social logo

oca / knowledge Goto Github PK

View Code? Open in Web Editor NEW
151.0 57.0 328.0 10.87 MB

Odoo Document & Knowledge Management

Home Page: http://www.odoo-community.org/project/22

License: GNU Affero General Public License v3.0

Python 33.92% HTML 62.60% SCSS 0.20% JavaScript 3.29%
erp hacktoberfest odoo python

knowledge's Introduction

Runboat Pre-commit Status Build Status codecov Translation Status

knowledge

Knowlesge management addons. Also has some usefull tools to handle attachments

Available addons

addon version maintainers summary
attachment_zipped_download 16.0.2.0.2 Attachment Zipped Download
document_knowledge 16.0.1.1.0 Documents Knowledge
document_page 16.0.1.4.0 Document Page
document_page_access_group 16.0.1.1.0 Choose groups to access document pages
document_page_access_group_user_role 16.0.1.1.0 victoralmau Document Page Access Group User Role
document_page_approval 16.0.1.1.1 Document Page Approval
document_page_group 16.0.1.0.1 Define access groups on documents
document_page_partner 16.0.1.0.0 Allows to link doucment pages to a partner
document_page_project 16.0.1.0.0 This module links document pages to projects
document_page_reference 16.0.1.0.1 etobella Include references on document pages
document_page_tag 16.0.1.0.0 Allows you to assign tags or keywords to pages and search for them afterwards
document_url 16.0.1.0.4 URL attachment
document_url_google_drive 16.0.1.0.1 Attach Google Drive link to Odoo document using Google Drive Picker

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA) policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

knowledge's People

Contributors

badbole avatar berisoft-arg avatar ernestotejeda avatar etobella avatar fernandoromera avatar francesco-ooops avatar ivantodorovich avatar ivorra78 avatar jakobkrabbe avatar jordibforgeflow avatar loisrforgeflow avatar luis-ron avatar manuelregidor avatar marielejeune avatar miquelrforgeflow avatar mtelahun avatar mymage avatar naousse avatar nicomacr avatar ntsirintanis avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar pedrobaeza avatar peterromao avatar sysadminmatmoz avatar tisho99 avatar victoralmau avatar weblate avatar ygol 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

knowledge's Issues

Help Popup module evolution

This PR OCA/web#417
propose a way to aggregate help content by model or action

Help popup module

Pros

  • several modules can put their doc content on the same object with the same field
  • end users can be see contextual doc of several modules
  • end users can add/replace some parts of the doc
  • documentation can be aggregated for a whole menu (Sales, Accounting ...) and be extended to the whole ERP.

Cons / Todo

  • help fields (which store content) are in ir.model and ir.act_window: easy but not fine for security rules ?
  • no way to reuse customized parts of doc provided by endusers
  • no use of qweb then doc inherits impossible: only add some parts.
  • no interaction between modules in knowledge repos and this module (changes approval, etc.)

odoo 8.0 830fc89 document_page IndexError: list index out of range when open Page

my odoo version: 8.0 830fc89
I use document_page more than 3 months, create many page and category without any error. From yesterday, when I click the menu of Pages everytime, the error pop out:

Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 543, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 580, in dispatch
result = self._call_function(*_self.params)
File "/opt/odoo/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/opt/odoo/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/opt/odoo/openerp/http.py", line 313, in checked_call
return self.endpoint(_a, *_kw)
File "/opt/odoo/openerp/http.py", line 809, in call
return self.method(_args, *_kw)
File "/opt/odoo/openerp/http.py", line 409, in response_wrap
response = f(_args, *_kw)
File "/opt/odoo/addons/web/controllers/main.py", line 884, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/opt/odoo/addons/web/controllers/main.py", line 905, in do_search_read
request.context)
File "/opt/odoo/openerp/http.py", line 914, in proxy
result = meth(cr, request.uid, _args, *_kw)
File "/opt/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 5198, in search_read
result = self.read(cr, uid, record_ids, fields, context=read_ctx)
File "/opt/odoo/openerp/api.py", line 268, in wrapper
return old_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 3144, in read
result = BaseModel.read(records, fields, load=load)
File "/opt/odoo/openerp/api.py", line 266, in wrapper
return new_api(self, _args, *_kwargs)
File "/opt/odoo/openerp/models.py", line 3190, in read
values[name] = field.convert_to_read(record[name], use_name_get)
File "/opt/odoo/openerp/fields.py", line 1597, in convert_to_read
return value_sudo.name_get()[0]
IndexError: list index out of range

I didn't find same error message online, would you please help to find the reason?

[9.0] document_url AddUrlDocumentItem' not found

After installing the module I get the following error whenever I try to go on a list menue:

Error: QWeb2: Template 'AddUrlDocumentItem' not found
error.log.txt

It could be that the error is caused by using the United Backend theme? Unfortunately I can't uninstall none of the modules so far.

Error message when installing module document_page

module: document_page
version: 9.0

Hello,

Iโ€™m trying to install the module document_page on Odoo 9 Enterprise Edition, and I get the following error message.

Traceback (most recent call last):
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 648, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 685, in dispatch
    result = self._call_function(*_self.params)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 321, in _call_function
    return checked_call(self.db, *args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/service/model.py", line 118, in wrapper
    return f(dbname, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 314, in checked_call
    result = self.endpoint(_a, *_kw)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 964, in __call__
    return self.method(_args, *_kw)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/http.py", line 514, in response_wrap
    response = f(_args, *_kw)
  File "/home/odoo/odoo9_enterprise_new/odoo9/enterprise/web/controllers/main.py", line 907, in call_button
    action = self._call_kw(model, method, args, {})
  File "/home/odoo/odoo9_enterprise_new/odoo9/enterprise/web/controllers/main.py", line 895, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/api.py", line 250, in wrapper
    return old_api(self, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/addons/base/module/module.py", line 459, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/api.py", line 250, in wrapper
    return old_api(self, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/addons/base/module/module.py", line 534, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/modules/registry.py", line 386, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/modules/loading.py", line 338, in load_modules
    loaded_modules, update_module)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/modules/loading.py", line 137, in load_module_graph
    init_module_models(cr, package.name, models)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/modules/module.py", line 300, in init_module_models
    result = obj._auto_init(cr, {'module': module_name})
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/api.py", line 250, in wrapper
    return old_api(self, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/models.py", line 2666, in _auto_init
    cr.execute('CREATE INDEX "%s_%s_index" ON "%s" ("%s")' % (self._table, k, self._table, k))
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/sql_db.py", line 141, in wrapper
    return f(self, _args, *_kwargs)
  File "/home/odoo/odoo9_enterprise_new/odoo9/openerp/sql_db.py", line 220, in execute
    res = self._obj.execute(query, params)
ProgrammingError: relation "document_page_history_summary_index" already exists

Any idea how I can solve this?

Thanks a lot for your help.

Best regards,

Wim

File protocol

If you add a url using "file" protocol the created link won't work.

Module Knowledge Odoo v10....need help

Hello,

I'm new here, can some one help me with this module?
I'm migrate two weeks ago on the Odoo v.10 and I need module Knowledge on my system.
I'm downloaded module Knowledge from this link https://github.com/OCA/knowledge/tree/10.0/document_url and copy to my folder with another modules. When I try to install this module i have many different mistake.....maybe I do something wrong?

Traceback (most recent call last):
File "/datadrive/odoo/odoo_10/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/datadrive/odoo/odoo_10/odoo/http.py", line 675, in dispatch
result = self._call_function(**self.params)
File "/datadrive/odoo/odoo_10/odoo/http.py", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/datadrive/odoo/odoo_10/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/datadrive/odoo/odoo_10/odoo/http.py", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/datadrive/odoo/odoo_10/odoo/http.py", line 933, in call
return self.method(*args, **kw)
File "/datadrive/odoo/odoo_10/odoo/http.py", line 504, in response_wrap
response = f(*args, **kw)
File "/datadrive/odoo/odoo_10/odoo/addons/web/controllers/main.py", line 866, in call_button
action = self._call_kw(model, method, args, {})
File "/datadrive/odoo/odoo_10/odoo/addons/web/controllers/main.py", line 854, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/datadrive/odoo/odoo_10/odoo/api.py", line 681, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/datadrive/odoo/odoo_10/odoo/api.py", line 672, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/datadrive/odoo/odoo_10/odoo/addons/base/module/module.py", line 410, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/datadrive/odoo/odoo_10/odoo/addons/base/module/module.py", line 484, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/datadrive/odoo/odoo_10/odoo/modules/registry.py", line 78, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/datadrive/odoo/odoo_10/odoo/modules/loading.py", line 337, in load_modules
loaded_modules, update_module)
File "/datadrive/odoo/odoo_10/odoo/modules/loading.py", line 235, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/datadrive/odoo/odoo_10/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/datadrive/odoo/odoo_10/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 848, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 918, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 802, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 549, in _tag_menuitem
group_id = self.id_get(group)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 785, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "/datadrive/odoo/odoo_10/odoo/tools/convert.py", line 791, in model_id_get
return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)
File "/datadrive/odoo/odoo_10/odoo/addons/base/ir/ir_model.py", line 1033, in xmlid_to_res_model_res_id
return self.xmlid_lookup(xmlid)[1:3]
File "", line 2, in xmlid_lookup
File "/datadrive/odoo/odoo_10/odoo/tools/cache.py", line 87, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/datadrive/odoo/odoo_10/odoo/addons/base/ir/ir_model.py", line 1022, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ParseError: "External ID not found in the system: knowledge.group_document_user" while parsing /datadrive/odoo/addons-custom/knowledge10/views/knowledge.xml:34, near

[9.0] document_approval

Document Approval

This module adds a workflow to approve new document revisions and download the last approved
one by default.

Installation

  • No installation required

Configuration

To configure this module, you need to:

  • set a valid email address on the company settings
  • go to Knowledge > Directories
  • select a directory
  • check the Requires approval checkbox
  • set the approving groups and their sequence. Make sure users belonging to those groups have valid email addresses.

Usage

To use this module, you need to:

  • go to Knowledge > Documents
  • create and upload a new document and choose the previously created category. A notification is sent to the group with the document revision to review as an attachment.
  • based on the review, the document revision is approved or not.
  • users downloading the document get the latest approved revision.

Multi-level Approval

Parallel approval:

Configuration:

  • Group 1 and sequence = 1
  • Group 2 and sequence = 1

Process:

  • An email is sent to users of Group 1 and Group 2.
  • The first user belonging to Group 1 or Group 2 approves.
  • Document is approved

Sequential approval

Configuration:

  • Group 1 and sequence = 1
  • Group 2 and sequence = 2

Process:

  • An email is sent to users of Group 1
  • The first user belonging to Group 1 approves.
  • An email is sent to users of Group 2
  • The first user belonging to Group 2 approves.
  • Document is approved

[11.0] document_page: Print Error

`Fehler:
Odoo Server Error

Traceback (most recent call last):
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 342, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_document_page_report_documentpage_doc_525
File "", line 2, in body_call_content_524
AttributeError: 'document.page' object has no attribute 'display_content'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/odoo/odoo/addons/web/controllers/main.py", line 1617, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/usr/share/odoo/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/share/odoo/3rd-enabled/report_xlsx/controllers/main.py", line 43, in report_routes
reportname, docids, converter, **data
File "/usr/share/odoo/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/share/odoo/odoo/addons/web/controllers/main.py", line 1566, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_actions_report.py", line 628, in render_qweb_pdf
html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_actions_report.py", line 666, in render_qweb_html
return self.render_template(self.report_name, data), 'html'
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_actions_report.py", line 470, in render_template
return view_obj.render_template(template, values)
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1195, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/usr/share/odoo/odoo/addons/website/models/ir_ui_view.py", line 113, in render
return super(View, self).render(values, engine=engine)
File "/usr/share/odoo/odoo/addons/web_editor/models/ir_ui_view.py", line 27, in render
return super(IrUiView, self).render(values=values, engine=engine)
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 1204, in render
return self.env[engine].render(self.id, qcontext)
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/ir_qweb.py", line 57, in render
return super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 271, in render
self.compile(template, options)(self, body.append, values or {})
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 344, in _compiled_fn
raise e
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 342, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_1635_519
File "", line 2, in body_call_content_518
File "", line 3, in foreach_517
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 349, in _compiled_fn
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)
odoo.addons.base.ir.ir_qweb.qweb.QWebException: 'document.page' object has no attribute 'display_content'
Traceback (most recent call last):
File "/usr/share/odoo/odoo/odoo/addons/base/ir/ir_qweb/qweb.py", line 342, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_document_page_report_documentpage_doc_525
File "", line 2, in body_call_content_524
AttributeError: 'document.page' object has no attribute 'display_content'

Error to render compiling AST
AttributeError: 'document.page' object has no attribute 'display_content'
Template: document_page.report_documentpage_doc
Path: /templates/t/t/div/div
Node:

`

master + 8.0

Could someone with the proper access rights remove the master branch or at least set 8.0 as default?

unported addon attachment_preview

Hi OCA developers,

I wanted to ask if you are planning to port the addon attachment_preview to version 10.0?
I was very satisfied with this addon in my odoo v8 and I would appreciate it when it's also available for my odoo v10.
Just let me know if & when you plan to release a v10, or if I have to search for an alternative addon.

Thank you in advance,
MM

Error of maximum recursion in category

  1. Steps to reproduce the issue you have observed

1.- Create a new Category with the next values:
name = 'OpenERP Features'

2.- Save the Category, and edit to set the parent_id = Category created in step 1
category odoo

  1. The result you observed
    When I save get RuntimeError: maximum recursion depth exceeded while calling a Python object

category odoo

  1. The result you expected
    I can not select the same category as parent.

  2. The Odoo version
    8.0 46811e3

document_page_file

This module allows you to include attached files in a document page. If the file is an image (jpg or png), the image is displayed within the page.

Document Page Approval - Field `message_follower_ids` does not exist

Error details:
Field `message_follower_ids` does not exist

Error context:
View `document.page.form`
[view_id: 3905, xml_id: n/a, model: document.page, parent_id: 1346]" while parsing /usr/lib/python2.7/dist-packages/openerp/addons/document_page_approval/document_page_view.xml:31, near
<record id="wiki_form_inherit" model="ir.ui.view">
            <field name="name">document.page.form</field>
            <field name="model">document.page</field>
            <field name="inherit_id" ref="document_page.view_wiki_form"/>
            <field name="arch" type="xml">
                <field name="display_content" position="before">
                    <group class="oe_read_only">
                        <field name="approved_date"/>
                        <field name="approved_uid"/>
                    </group>
                </field>
            </field>
        </record>

Need help to install on odoo comunity 10

Hello OCA!
i need little help to install module
i try to install like app on odoo app but when i try to update the list it didn't show up plz help how can i install this module ?

PR #129 breaks attachments_to_filesystem

in this PR the code has been incorrectly moved to the new api:

in models/ir_attachment.py, line 83:

    ir_attachment = self.env['ir.attachment']
    attachment_ids = ir_attachment.search(
        [('db_datas', '!=', False)], limit=limit)

Since it's now the new api, the attachments are returned and no longer the attachment_ids.
The rest of the code still believes that a list of ids is returned and hence it breaks,
cf. line 89
attachment_data = ir_attachment.read(
[attachment_id], ['datas', 'res_model']

an quick fix could be to change [attachment_id] into [attachment_id.id] but it's probably cleaner to go the new api all the way (hence change 'attachment_ids' in line 84 into 'attachments' and skip the 'read' in line 89 since we have already the records in browse.

[8.0] TypeError: function lambda at 0x7f1f2cb562a8 is not JSON serializable

after installed, when click menu Marketing-MassMailing, the message pop

Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 581, in dispatch
return self._json_response(result)
File "/opt/odoo/openerp/http.py", line 519, in _json_response
body = simplejson.dumps(response)
File "/home/odoo/odoo/lib/python2.7/site-packages/simplejson/init.py", line 370, in dumps
return _default_encoder.encode(obj)
File "/home/odoo/odoo/lib/python2.7/site-packages/simplejson/encoder.py", line 269, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/home/odoo/odoo/lib/python2.7/site-packages/simplejson/encoder.py", line 348, in iterencode
return _iterencode(o, 0)
File "/home/odoo/odoo/lib/python2.7/site-packages/simplejson/encoder.py", line 246, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <function at 0x7f1f2cb562a8> is not JSON serializable

Unable to "Enable Manage document pages (Wiki)"

Hello, sorry i am pretty new so it c an be a stupid question, i am tring to install this module on my oddo 10 but when i try to check the "Manage document pages (Wiki)" and save i get redirtect to a page which say:

Odoo Warning - Warning
The one-click installation of Odoo Apps is currently unavailable. Please go to www.odoo.com/apps to download manually.

it look like it isntalling some module from store but functionality is been disabled,,, but i dont know which module is ..

what i can do?

error on instalation in ODoo 10

Empty database. Trying to install knowledge module. Got this:

 Traceback (most recent call last):
  File "/pd/odoo/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/pd/odoo/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)
  File "/pd/odoo/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/pd/odoo/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/pd/odoo/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/pd/odoo/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/pd/odoo/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/pd/odoo/addons/web/controllers/main.py", line 866, in call_button
    action = self._call_kw(model, method, args, {})
  File "/pd/odoo/addons/web/controllers/main.py", line 854, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/pd/odoo/odoo/api.py", line 681, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/pd/odoo/odoo/api.py", line 672, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/pd/odoo/odoo/addons/base/module/module.py", line 410, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/pd/odoo/odoo/addons/base/module/module.py", line 484, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/pd/odoo/odoo/modules/registry.py", line 78, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/pd/odoo/odoo/modules/loading.py", line 339, in load_modules
    loaded_modules, update_module)
  File "/pd/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/pd/odoo/odoo/modules/loading.py", line 156, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/pd/odoo/odoo/modules/loading.py", line 95, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/pd/odoo/odoo/tools/convert.py", line 848, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/pd/odoo/odoo/tools/convert.py", line 918, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/pd/odoo/odoo/tools/convert.py", line 802, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/pd/odoo/odoo/tools/convert.py", line 710, 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 "/pd/odoo/odoo/addons/base/ir/ir_model.py", line 1192, in _update
    record = record.create(values)
  File "/pd/odoo/odoo/addons/base/ir/ir_ui_view.py", line 353, in create
    return super(View, self).create(self._compute_defaults(values))
  File "/pd/odoo/odoo/models.py", line 3818, in create
    self._fields[key].determine_inverse(record)
  File "/pd/odoo/odoo/fields.py", line 999, in determine_inverse
    getattr(records, self.inverse)()
  File "/pd/odoo/odoo/addons/base/ir/ir_ui_view.py", line 220, in _inverse_arch
    view.write(data)
  File "/pd/odoo/odoo/addons/base/ir/ir_ui_view.py", line 371, in write
    return super(View, self).write(self._compute_defaults(vals))
  File "/pd/odoo/odoo/models.py", line 3550, in write
    self._write(old_vals)
  File "/pd/odoo/odoo/models.py", line 3696, in _write
    self._validate_fields(vals)
  File "/pd/odoo/odoo/models.py", line 1074, in _validate_fields
    raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
ParseError: "Error while validating constraint

Model not found: knowledge.config.settings

>Error context:
View `Configure Knowledge`
[view_id: 206, xml_id: n/a, model: knowledge.config.settings, parent_id: n/a]
None" while parsing /pd/OCA/knowledge/knowledge/views/res_config.xml:4, near
```xml
<record id="view_knowledge_configuration" model="ir.ui.view">
    <field name="name">Configure Knowledge</field>
    <field name="model">knowledge.config.settings</field>
    <field name="arch" type="xml">
      <form string="Configure Knowledge" class="oe_form_configuration">
        <header>
          <button string="Apply" type="object" name="execute" class="oe_highlight"/>
          or
          <button string="Cancel" type="object" name="cancel" class="oe_link"/>
        </header>
        <separator string="Knowledge and Documents Management"/>
        <group>
          <label for="id" string="Documents"/>
          <div>
            <div>
              <field name="module_document" class="oe_inline"/>
              <label for="module_document"/>
            </div>
            <div>
              <field name="module_document_page" class="oe_inline"/>
              <label for="module_document_page"/>
            </div>
            <div>
              <field name="module_document_page_approval" class="oe_inline"/>
              <label for="module_document_page_approval"/>
            </div>
          </div>
        </group>
        <separator string="Connect with an external DMS"/>
        <group>
          <label for="id" string="Using CMIS"/>
          <div>
            <div>
              <field name="module_cmis_read" class="oe_inline"/>
              <label for="module_cmis_read"/>
            </div>
            <div>
              <field name="module_cmis_write" class="oe_inline"/>
              <label for="module_cmis_write"/>
            </div>
          </div>
        </group>
      </form>
    </field>
  </record>

knowledge 10.0.1.0.0 does not get loaded under odoo 10.0 community edition

Hi!

I'm currently checking out odoo 10.0 and have it running under Ubuntu Server 16.04.
I tried to install your 'knowledge' module but had no success - these are my steps so far:

  1. Downloaded the zip file for v10.0.1.0.0 from the app store, extracted it to [ODOO-DIR]/addons
  2. Gave the resulting [ODOO-DIR]/addons/knowledge directory and its contents the same permissions as the odoo main directory (drwxr-xr-x odoo sudo)
  3. Started up the odoo server via ./odoo-bin -d demo

The server showed no error messages during startup, but it stroke me as odd that the number of loaded modules remained unchanged. Then I went to 'Apps' -> 'Update Apps' in the UI, but the knowlegde module did not show up in the app list. I tried restarting the server, but the problems (number of loaded modules not incrementing and the module not showing up in my app list after updating it) remained.

Then I moved the knowledge directory from [ODOO-DIR]/addons to the parent folder of [ODOO-DIR] and tried to explicitly load it via ./odoo-bin -d demo --addons-path="../knowledge,./addons", but this resulted in an aborted server startup process with the error

odoo-bin: error: option --addons-path: The addons-path '../knowledge' does not seem to a be a valid Addons Directory!

Can you please help me?

Kind regards,

Christian

How to install alfresco in odoo 9

now, i am using odoo version 9 i want to use alfodoo for odoo 9, i want to know installtion procedure and how to configure, please help me

Migration to version 9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate

  • knowledge by @naousse in #75
  • document_page by @naousse in #76
  • document_page_approval by @naousse in #77
  • attachments_to_filesystem
  • document_page_multi_company
  • document_no_unique_filenames
  • document_choose_directory - By @mohamedhabibchallouf - #107
  • document_reindex
  • document_multiple_records
  • attachment_preview - @cq-clearcorp - #108
  • document_url by @JonathanNEMRY in #89
  • attachment_edit
  • document_ocr

Migration to version 11.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Modules to migrate

11.0 Issue with menu?

documents odoo

To my mind shouldn't pages be under document_root? I'm not sure, I was just testing it and saw it is under the second documents menu.

[8.0] document_page error mass mailing

When access menu Marketin / Mass Mailing

192.168.254.209 - - [2015-11-10 16:44:40] "POST /web/dataset/call_kw/mail.mass_mailing/fields_view_get HTTP/1.1" 200 5347 0.039534
192.168.254.209 - - [2015-11-10 16:44:40] "POST /web/dataset/call_kw/ir.filters/get_filters HTTP/1.1" 200 286 0.009001
2015-11-10 16:44:40,974 16727 WARNING mydb openerp.addons.document_page.document_page: Trying to access attribute _mail_mass_mailing on document_page_history
2015-11-10 16:44:40,974 16727 WARNING mydb openerp.addons.document_page.document_page: Trying to access attribute _mail_mass_mailing on document_page_history
2015-11-10 16:44:40,974 16727 WARNING mydb openerp.addons.document_page.document_page: Trying to access attribute _mail_mass_mailing on document_page_history
2015-11-10 16:44:40,978 16727 ERROR mydb openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/data/home/openerp/bin/8.0/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/data/home/openerp/bin/8.0/openerp/http.py", line 588, in dispatch
    return self._json_response(result)
  File "/data/home/openerp/bin/8.0/openerp/http.py", line 526, in _json_response
    body = simplejson.dumps(response)
  File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 354, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 262, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 340, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 239, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <function <lambda> at 0x7fb228106b18> is not JSON serializable
192.168.254.209 - - [2015-11-10 16:44:40] "POST /web/dataset/call_kw/mail.mass_mailing/fields_get HTTP/1.1" 200 1587 0.012133

Redirect to main page, when accessing document from category

On a fresh install, after configuring Manage documents and Manage document pages (Wiki)
We create a new page (for exemple page1)
We set a new category to this page (cat1)
We save.
We open page1
We click on the category cat1
Here we click on the Documents tab
We have the document page1, when we click on it, we are redirected to the main page instead of the document

attachment_preview error

Error:
Uncaught Error: QWeb2: Template 'attachment_preview.AttachmentPreviewWidget' not found

Could add full log if needed. python-magic seems to be installed. Maybe I'm overlooking something.

[9.0] document_revision

Document Revision

This module extends Odoo DMS by allowing to re-upload documents and store them as a new revision.

The module also allows you to access and download previous revisions of the same document.

Installation

  • No installation required

Configuration

  • No configuration required

Usage

To use this module, you need to:

  • go to Knowledge > Documents
  • create and upload a new document and save it
  • edit the same document to upload a new revision and save it
  • go to Actions > Document history to see the 2 revisions of the same document
  • select the oldest to download the first revision
  • go back to the document to download the latest revision

or

  • add an attachment to any Odoo record
  • in the list of attachments, click on the pencil icon of the document to upload a new revision

document_page_print_multi

This module allows you to create a wiki page with the table of content (ordered list of links to other pages) and allow the user to print a PDF with the concatenation of the toc and the pages content (including images, see #39).

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.