Code Monkey home page Code Monkey logo

generic-addons's Introduction

Generic Addons

These addons are mainly used as auxiliary or technical modules, not a standalone applications. Typically, there is no need to install them manually.

You will find the following main groups of addons:

  • Generic Condition addons - addons for creating conditions to program some logic via user interface
  • Generic Location addons - add ability to create and manage locations
  • Generic Tag addons - for tag management

Additional technical addons:

  • Generic Rule - provides new menu for technical addons
  • Generic M2O Widget - for better record selection from many2one fields
  • Generic Mixin - useful model mixins

Yodoo Cockpit

Yodoo Cockpit

Take a look at Yodoo Cockpit project, and discover the easiest way to manage your odoo installation. Just short notes about Yodoo Cockpit:

  • start new production-ready odoo instance in 1-2 minutes.
  • add custom addons to your odoo instances in 5-10 minutes.
  • out-of-the-box email configuration: just press button and add some records to your DNS, and get a working email
  • make your odoo instance available to external world (internet) in 30 seconds (just add single record in your DNS)

If you have any questions, then contact us at [email protected], so we could schedule online-demonstration.

Level up your service quality

Level up your service with our Helpdesk / Service Desk / ITSM solution.

Just test it at yodoo.systems: choose template you like, and start working.

Test all available features of Bureaucrat ITSM with this template.

Bug tracker

Bugs are tracked on https://crnd.pro/requests. In case of trouble, please report there.

Maintainer

Center of Research & Development

Our web site is: crnd.pro

This module is maintained by the Center of Research & Development company.

We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services (more info available on our site).Our main goal is to provide the best quality product for you.

For any questions contact us.

generic-addons's People

Contributors

egorsummer avatar irina235 avatar katyukha avatar kv00 avatar oksanayeroshenko avatar ostapyakovenko avatar rosoma-h avatar zipppt 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

Watchers

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

generic-addons's Issues

Module operation error - generic-mixin

Greetings. For the 2nd day I have been trying to configure the generic-mixin module to auto-update views in the odoo16 branch.
At the moment, I had to disable auto-refresh when creating a record - I patched the GenericMixinRefreshView.create = create method, because immediately after creating a record, the page of the user who created the record is automatically updated with the output of a new form for creating a new object. For the write method, also when auto-update is triggered, a form is returned to create a new record. I found out that the problem disappears if the page is refreshed manually.
Tried various methods from the generic-mixin: it always works the same (the first time when the auto-refresh method is triggered, if the page has not been manually updated, the form is returned to create a new model entry) - with both _auto_refresh_view_on_write=True and trigger_refresh_view(action='write') )
Is it possible to fix this bug, or advice, please?

The functionality for autoupdating views using the generic-mixin module does not work, incl. in the test_generic_mixin module in odoo 17

Good afternoon. For version 17 of odoo, the view autoupdate functionality does not work.
After installing the generic_mixin and test_generic_mixin modules, then test autoupdating views (using test_generic_mixin module), an error occurs when write a record:

Kazam_screencast_00009.mp4
  File "../odoo/addons/web/models/models.py", line 71, in web_save
    self.write(vals)
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 203, in write
    refresh_fields = self._auto_refresh_view_on_field_changes_system()
  File "<decorator-gen-124>", line 2, in _auto_refresh_view_on_field_changes_system
  File "../odoo/odoo/tools/cache.py", line 104, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 122, in _auto_refresh_view_on_field_changes_system
    track_fields = set((
  File "../generic/generic_mixin/models/generic_mixin_refresh_view.py", line 126, in <genexpr>
    self.CONCURRENCY_CHECK_FIELD)
AttributeError: 'test.gm.refresh.view' object has no attribute '**CONCURRENCY_CHECK_FIELD**'

Removing CONCURRENCY_CHECK_FIELD don't help, records are still not updated.
image
Look in the video below.

Kazam_screencast_00006.mp4

Internal server error when many2one widget used in tree view

I wanted to make an editable tree and it didn't work, neither with a normal tree. Apparently my view is "invalid" but I don't know why, there is a parse error near the tree tag in the xml file. In fact, there is no crash with the "widget" attribute alone (the field only stays blank), it occurs when there is also "model_field".

I work with the 14.0 version of generic_m2o module.

If you are unable to reproduce, I can provide more details (I don't do this now because I think it will require some editing as I'm not sure my employer is OK to share details about the database)

[Fix][16.0] Fix model_create_multi in generic_mixin_uuid

In addon generic_mixin need to change file generic_mixin_uuid.py:

Replace def create(self, vals)... on

@api.model_create_multi
def create(self, vals_list):
    for vals in vals_list:
        vals_uuid = vals.get(self._generic_mixin_uuid_field_name, '/')
        if not vals_uuid or vals_uuid == '/':
            # If uuid is not provided in vals, or is equeal to '/', then we
            # have to generate new uuid
            vals[self._generic_mixin_uuid_field_name] = (
                self._generic_mixin_uuid__generate_new())
    return super(GenericMixinUUID, self).create(vals_list)

Field appears empty with many2one widget in form view

In form view, when I use the many2one widget on a Many2oneReference or Integer field, I can choose the right records but once I selected one, it appears empty. In tree view without the widget, I can see an integer, so the field is not empty but its value is not displayed with the widget.

Suggestion for generic-mixin module

Greetings. I want to suggest improving the functionality of the **generic-mixin** module. Faced the problem that in odoo16 (probably in other versions of odoo) when updating the form view, the pdf display (*<field name="attachment_pdf" widget="pdf_viewer"/>*) is not updated. Those. if you change the data in the *attachment_pdf* field in the table corresponding to the class inherited from *models.Model* (in case *attachment=False*), or if you change the data in the _'datas'_ field in the table corresponding to the _ir.attachment_ module - display the content of _pdf_ is not updated (I tried to change this field with a python script, from a cron task), _attachment_pdf_ is updated only if a new ir.attachment entry is created for the attachment-pdf field:
            self.env['ir.attachment'].create({
               'name': name,
               'type': 'binary',
               'res_field': 'attachment_pdf',
               'datas': b64_pdf,
               'store_fname': name,
               'res_model': self._name,
               'res_id': self.id,
               'mimetype': 'application/pdf'
            })
Is it possible to complete the **generic-mixin** module to update the _iframe_ generated to display the pdf document:

<iframe class="o_pdfview_iframe" alt="PDF-файл" src="/web/static/lib/pdfjs/web/viewer.html?file=http%3A%2F%2Flocalhost%3A8069%2Fweb%2Fcontent%3Fmodel%3Dtest_model%26field%3Dattachment_pdf%26id%3D3#page=1" name="attachment_pdf"></iframe>?

Generic_M2O update issue

With the Generic_M2O module, the first time you select the value in the combo box, the widget acts as expected. But when you save the record and reopen it and try to select another value, the combo box does not update the new value until you close and save the form. Could you fix this problem?

I am working with version 12.0 but the same behavior occurs with version 13.0

Best regards

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.