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

Alexandr Usov blessendor at gmail.com
Mon Aug 8 14:40:22 MSD 2016


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,
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, 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>



2016-08-03 13:18 GMT+03:00 Trever L. Adams <
trever at middleearth.sapphiresunday.org>:

> My module for OpenERP/Odoo to do click2dial and pull call details out of
> the system, etc. has been updated. If you find it of interest, please
> see the three sections below:
>
>
> https://github.com/treveradams/connector-telephony/tree/freeswitch-7.0
>
> This branch is for OpenERP 7.0. I no longer have an installation of 7.0,
> but this should fix many bugs. If you use it and you have problems,
> please let me know. I want to keep this working as long as people use it.
>
> If it doesn't work for you, please send me a private email. If it works,
> please comment on https://github.com/OCA/connector-telephony/pull/58
> (feel free to comment there if it doesn't work).
>
>
> https://github.com/treveradams/connector-telephony/tree/freeswitch-8.0
>
> This branch is for Odoo 8.0. I never had an Odoo 8.0 installation.
> However, I believe it should be working. If you use it and you have
> problems, please let me know. I want to keep this working as long as
> people use it.
>
> If it doesn't work for you, please send me a private email. If it works,
> please comment on https://github.com/OCA/connector-telephony/pull/59
> (feel free to comment there if it doesn't work).
>
>
> https://github.com/treveradams/connector-telephony/tree/freeswitch-9.0
>
> This branch is for Odoo 9.0. It was created over the last few days and
> is thoroughly tested (to what my installation allows me to). There may
> be one bug. If you use sip phones internally, you may see this. I
> believe it is simple to fix if it is there.
>
> If it doesn't work for you, please send me a private email. If it works,
> please comment on https://github.com/OCA/connector-telephony/pull/96
> (feel free to comment there if it doesn't work).
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160808/8291aeac/attachment.html 


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