Skip to Content
Menu
This question has been flagged
9 Replies
6310 Views

Hello

Im working on a  new installation of Odoo for a hospital, they need to be able to add, search or select the customer name in the POS interface, the only way to do this at the moment is by adding new clients in the Sales area.

installation: odoo_8.0rc1-latest

OS: Windows 8

I have tried to install Module TG_POS_ENHANCED but Im not able to  install the module :

error:

=================

OpenERP Server Error

Traceback (most recent call last):
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/http.py", line 345, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/http.py", line 217, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/http.py", line 212, in checked_call
    return self.func(*a, **kw)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/http.py", line 529, in __call__
    return self.method(*args, **kw)
  File "/opt/openerp-saas3/oerp-saas3/web/addons/web/controllers/main.py", line 1207, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/openerp-saas3/oerp-saas3/web/addons/web/controllers/main.py", line 1195, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/addons/base/module/module.py", line 425, in button_immediate_install
    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/addons/base/module/module.py", line 476, in _button_immediate_function
    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/modules/registry.py", line 247, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/modules/loading.py", line 341, in load_modules
    loaded_modules, update_module)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/modules/loading.py", line 244, 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-saas3/oerp-saas3/server/openerp/modules/loading.py", line 175, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/modules/loading.py", line 116, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/tools/convert.py", line 967, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/tools/convert.py", line 1053, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/tools/convert.py", line 921, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/tools/convert.py", line 850, 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-saas3/oerp-saas3/server/openerp/addons/base/ir/ir_model.py", line 1010, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/addons/base/ir/ir_ui_view.py", line 177, in create
    return super(view, self).create(cr, uid, values, context)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/osv/orm.py", line 4156, in create
    self._validate(cr, user, [id_new], context)
  File "/opt/openerp-saas3/oerp-saas3/server/openerp/osv/orm.py", line 1575, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
ParseError: "ValidateError
The field(s) `arch` failed against a constraint: Invalid view definition

Error details:
Element '<field name="name">' cannot be located in parent view

Error context:
View `view.tg.partner.tree`
[view_id: 869, xml_id: n/a, model: res.partner, parent_id: 121]" while parsing /opt/openerp/oerp/addons/tg_partner_firstname/tg_partner_view.xml:30, near
<record model="ir.ui.view" id="view_tg_partner_tree">
            <field name="model">res.partner</field>
            <field name="name">view.tg.partner.tree</field>
            <field name="view_type">tree</field>
            <field name="inherit_id" ref="base.view_partner_tree"/>
            <field name="arch" type="xml">
                <data><field name="name" position="after">
                    <field name="firstname"/>
                    <field name="zip"/>
                </field>
                <field name="phone" position="after">
                    <field name="mobile"/>
                </field>
                <field name="email" position="after">     
                    <field name="country"/>
                </field>
            </data></field>
        </record>

=================

I dont know if there is any othe rway to do this, or a way aroud for the above error?

could you please advise?

 

thank you in advanced.

 

Avatar
Discard

Hello, This module is for V7. I have not yet made a V8 version.

Author

Come on Thierry can I help you to develop I dont know too much about Programing but I can probably help in a way pleaaase!

Best Answer

Odoo 8 pos has this feature in default, I think you are using rc version stable is released you can download it try it.

Avatar
Discard
Author

Ill test it today thank you

Best Answer

if you using odoo v8 actually you can add he customer directly from POS interface

and that tg_enhance is for v7 i dont know if its work on odoo v8

Avatar
Discard
Author

No there is only an option to select a customer from your list of clients :(

Best Answer

how i can add filed t the form costumer from the point of sale , 

so i correctly add the field on the pos view but when i clic on save the filed not be sended to the server 

Avatar
Discard
Author Best Answer

 

swapnil wagh  and   Hengky Zhang       thank you guys for pointing me in the right direction, I installed the latest relase of odoo stable 8 and has this option by default  sorry that I dont have the karma to up vote your answers  

 

thank you again

 

Avatar
Discard
Best Answer

You can download this module for version 7.0 at  http://openerp4vn.org/tro-giup/pos_customer-tar/

The video guide you how to use it at http://youtu.be/-AXd3nUjmwY

Avatar
Discard