[Freeswitch-users] [ANN]: Odoo connector-telephony for FreeSWITCH new version

Trever L. Adams trever at middleearth.sapphiresunday.org
Mon Aug 8 19:04:43 MSD 2016


On 08/08/2016 04:40 AM, Alexandr Usov wrote:
> Can't install base_phone module:
>
> Odoo Server Error
> ------------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/opt/openerp/v8/openerp/http.py", line 537, in _handle_exception
>     return super(JsonRequest, self)._handle_exception(exception)
>   File "/opt/openerp/v8/openerp/http.py", line 574, in dispatch
>     result = self._call_function(**self.params)
>   File "/opt/openerp/v8/openerp/http.py", line 310, in _call_function
>     return checked_call(self.db, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/service/model.py", line 113, in wrapper
>     return f(dbname, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/http.py", line 307, in checked_call
>     return self.endpoint(*a, **kw)
>   File "/opt/openerp/v8/openerp/http.py", line 803, in __call__
>     return self.method(*args, **kw)
>   File "/opt/openerp/v8/openerp/http.py", line 403, in response_wrap
>     response = f(*args, **kw)
>   File "/opt/openerp/v8/addons/web/controllers/main.py", line 948, in call_button
>     action = self._call_kw(model, method, args, {})
>   File "/opt/openerp/v8/addons/web/controllers/main.py", line 936, in _call_kw
>     return getattr(request.registry.get(model), method)(request.cr <http://request.cr>, request.uid, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/addons/base/module/module.py", line 446, in button_immediate_install
>     return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
>   File "/opt/openerp/v8/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/addons/base/module/module.py", line 494, in _button_immediate_function
>     registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
>   File "/opt/openerp/v8/openerp/modules/registry.py", line 370, in new
>     openerp.modules.load_modules(registry._db, force_demo, status, update_module)
>   File "/opt/openerp/v8/openerp/modules/loading.py", line 355, in load_modules
>     loaded_modules, update_module)
>   File "/opt/openerp/v8/openerp/modules/loading.py", line 255, in load_marked_modules
>     loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
>   File "/opt/openerp/v8/openerp/modules/loading.py", line 176, in load_module_graph
>     _load_data(cr, module_name, idref, mode, kind='data')
>   File "/opt/openerp/v8/openerp/modules/loading.py", line 118, in _load_data
>     tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
>   File "/opt/openerp/v8/openerp/tools/convert.py", line 901, in convert_file
>     convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
>   File "/opt/openerp/v8/openerp/tools/convert.py", line 987, in convert_xml_import
>     obj.parse(doc.getroot(), mode=mode)
>   File "/opt/openerp/v8/openerp/tools/convert.py", line 853, in parse
>     self._tags[rec.tag](self.cr <http://self.cr>, rec, n, mode=mode)
>   File "/opt/openerp/v8/openerp/tools/convert.py", line 763, 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 "/opt/openerp/v8/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/addons/base/ir/ir_model.py", line 1077, in _update
>     res_id = model_obj.create(cr, uid, values, context=context)
>   File "/opt/openerp/v8/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/addons/base/ir/ir_ui_view.py", line 264, in create
>     context=context)
>   File "/opt/openerp/v8/openerp/api.py", line 241, in wrapper
>     return old_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/api.py", line 336, in old_api
>     result = method(recs, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/models.py", line 4076, in create
>     record = self.browse(self._create(old_vals))
>   File "/opt/openerp/v8/openerp/api.py", line 239, in wrapper
>     return new_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/api.py", line 463, in new_api
>     result = method(self._model, cr, uid, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/models.py", line 4267, in _create
>     recs._validate_fields(vals)
>   File "/opt/openerp/v8/openerp/api.py", line 239, in wrapper
>     return new_api(self, *args, **kwargs)
>   File "/opt/openerp/v8/openerp/models.py", line 1271, in _validate_fields
>     raise ValidationError('\n'.join(errors))
> ParseError: "ValidateError
> Field(s) `arch` failed against a constraint: Invalid view definition
>
> Error details:
> Field `state` does not exist
>
> Error context:
> View `reformat_all_phonenumbers.form`
> [view_id: 1499, xml_id: n/a, model: reformat.all.phonenumbers, parent_id: n/a]" while parsing /opt/openerp/v8/addons-community/base_phone/wizard/reformat_all_phonenumbers_view.xml:11, near
> <record id="reformat_all_phonenumbers_form" model="ir.ui.view">
>     <field name="name">reformat_all_phonenumbers.form</field>
>     <field name="model">reformat.all.phonenumbers</field>
>     <field name="arch" type="xml">
>         <form string="Reformat all phone numbers">
>             <group name="main">
>                 <label string="This wizard reformats the phone, mobile and fax numbers of all partners in standard international format e.g. +33141981242" colspan="2" states="draft"/>
>                 <label colspan="2" string="Phone numbers that couldn't be reformatted:" states="done"/>
>                 <field name="phonenumbers_not_reformatted" colspan="2" nolabel="1" states="done"/>
>                 <field name="state" invisible="1"/>
>             </group>
>             <footer>
>                 <button name="run_reformat_all_phonenumbers" string="Reformat all phone numbers" type="object" class="oe_highlight" states="draft"/>
>                 <button name="action_next" type="object" string="Close" class="oe_highlight" states="done"/>
>                 <button special="cancel" string="Cancel" class="oe_link" states="draft"/>
>             </footer>
>         </form>
>     </field>
> </record>
>
>
>
Ok. base_phone is upstream. I will look into it. Possibly, I am not on
the current version.

Thank you for the feedback.

TRever

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160808/ad9b6c79/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: OpenPGP digital signature
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160808/ad9b6c79/attachment-0001.bin 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list