Git Product home page Git Product logo

Comments (18)

kris3324 avatar kris3324 commented on July 30, 2024
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 499, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 516, in dispatch
    result = self._call_function(**self.params)
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 282, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 279, in checked_call
    return self.endpoint(*a, **kw)
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 732, in __call__
    return self.method(*args, **kw)
  File "/usr/local/lib/python2.7/site-packages/openerp/http.py", line 375, in response_wrap
    response = f(*args, **kw)
  File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  File "/var/packages/Odoo8/target/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 450, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/addons/base/module/module.py", line 497, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/usr/local/lib/python2.7/site-packages/openerp/modules/registry.py", line 324, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 358, in load_modules
    loaded_modules, update_module)
  File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 263, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 185, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/usr/local/lib/python2.7/site-packages/openerp/tools/convert.py", line 899, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/usr/local/lib/python2.7/site-packages/openerp/tools/convert.py", line 985, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/usr/local/lib/python2.7/site-packages/openerp/tools/convert.py", line 851, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "/usr/local/lib/python2.7/site-packages/openerp/tools/convert.py", line 765, in _tag_record
    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py", line 1047, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/var/packages/Odoo8/target/addons/base_action_rule/base_action_rule.py", line 177, in create
    new_id = create.origin(self, cr, uid, vals, context=context, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 332, in old_api
    result = method(recs, *args, **kwargs)
  File "/var/packages/Odoo8/target/addons/mgmtsystem_action/mgmtsystem_action.py", line 65, in create
    return super(mgmtsystem_action, self).create(vals)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 464, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
  File "/var/packages/Odoo8/target/addons/crm_claim/crm_claim.py", line 161, in create
    return super(crm_claim, self).create(cr, uid, vals, context=context)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/var/packages/Odoo8/target/addons/mail/mail_thread.py", line 377, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 332, in old_api
    result = method(recs, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 3970, in create
    record = self.browse(self._create(old_vals))
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 464, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 4090, in _create
    self._check_selection_field_value(cr, user, field, vals[field], context=context)
  File "/usr/local/lib/python2.7/site-packages/openerp/api.py", line 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/openerp/models.py", line 2290, in _check_selection_field_value
    _('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._name, field))
ParseError: "ValidateError
The value "immediate" for the field "mgmtsystem.action.type_action" is not in the selection" while parsing /var/packages/Odoo8/target/addons/mgmtsystem_action/demo_action.xml:6, near
<record id="demo_immediate" model="mgmtsystem.action">
      <field name="name">Add a comment to the revision</field>
      <field name="type_action">immediate</field>
      <field name="user_id" ref="base.user_root"/>
    </record>
Ok

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

crm_claim Installed 8.0.1.0
mgmtsystem Installed 8.0.1.0

from management-system.

max3903 avatar max3903 commented on July 30, 2024

@kris3324 Can you trying updating to mgmtsystem_action version 8.0.1.2.0?

It is working on Runbot:
http://3142723-8-0-e53c4f.runbot2.odoo-community.org/web#id=1&view_type=form&model=mgmtsystem.action&menu_id=240&action=271

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Hi Max3903 this is this version i am tying to install

from management-system.

max3903 avatar max3903 commented on July 30, 2024

@kris3324 can you install the module without the demo data and create an action to check that immediate action is available in the list of response type?

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Sorry for my odoo level but i can"t uncheck demo data what is the procedure ?

from management-system.

max3903 avatar max3903 commented on July 30, 2024

Create a new database and make sure the box is unchecked.

Le mer. 13 avr. 2016 16:36, Kris [email protected] a écrit :

Sorry for my odoo level but i can"t uncheck demo data what is the
procedure ?


You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
#133 (comment)

Maxime Chambreuil

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Hi Max, everything is ok now it was exactly this, without demo data no problems
you are the Best
Thanks a lot

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Sorry i do too fast,
in fact action module is installed correctly but:
in menu management system / action, when i create a new action, in type field i can see immediate, corrective ;preventive , perform.
if i select corrective or preventive record is ok, if i chose immediate or perform no posible to record
i have a error see below
The value "immediate" for the field "mgmtsystem.action.type_action" is not in the selection.

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Hi Maxime
any issue ?
kindly regards

from management-system.

max3903 avatar max3903 commented on July 30, 2024

@kris3324 Can you check the content of mgmtsystem_action/mgmtsystem_action.py to make sure it includes:

type_action = fields.Selection([
                                   ('immediate', 'Immediate Action'),
                                   ('correction', 'Corrective Action'),
                                   ('prevention', 'Preventive Action'),
                                   ('improvement', 'Improvement Opportunity')
                                   ], 'Response Type')

https://github.com/OCA/management-system/blob/8.0/mgmtsystem_action/mgmtsystem_action.py#L38

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

Dear Maxime
Yes it is included

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

During creat action
fields Type
with choice Corrective & Preventive it's OK
with choise Immediate or Improvement it'not ok

Odoo Warning

Valider l'erreur

The value "improvement" for the field "mgmtsystem.action.type_action" is not in the selection

Ok

mgmtsystem_action/mgmtsystem_action.py file have correct code what you mean

from management-system.

dreispt avatar dreispt commented on July 30, 2024

I'm not able to reproduce on Runbot.
Can you try there? https://runbot.odoo-community.org/runbot/repo/github-com-oca-management-system-128

I see a suspicious reference to base_action_rule in your traceback.
Are you using an clean database? Do you have any Automated Actions configured?

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

i start with database without demo data
my management system is 8.0.1.0.0 version
my action module is 8.0.1.2.0 version
what you mean suspicious reference to base_action_rule
yes there is automated action
Nom de l'action
mgmtsystem.action.window
Objet
mgmtsystem.action
Objet source
Utilisation de l'action
Type d'action
ir.actions.act_window
Fenêtre cible
Fenêtre courante
Paramètres généraux Sécurité
Vues
Type de vue
Formulaire
Mode d'affichage
tree
Voir la Réf.
mgmtsystem.action.tree
Vue de recherche
Filtres
Valeur du domaine
Valeur du contexte
{}
Limite
80
Rafraîchissement automatique
0
Recherche automatique

Filtre

Restrict to lists

Aide
Vues
Séquence
Type de vue
Vue

from management-system.

kris3324 avatar kris3324 commented on July 30, 2024

dear team
any feedback regarding this problem
do i need to delete automated action
kindly regards

from management-system.

max3903 avatar max3903 commented on July 30, 2024

@kris3324 I ran out of idea and I can't reproduce it. The values of the selection seem to be available in the view but not on the object...

Can you provide more information on your system:

from management-system.

max3903 avatar max3903 commented on July 30, 2024

No answer. Closing.

from management-system.

Related Issues (20)

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.