Odoo Help


[solved] "customer" field in POS to add clients from POS interface

Dark Shield
on 10/13/14, 1:51 AM 2,488 views


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 :



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
  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 name="phone" position="after">
                    <field name="mobile"/>
                <field name="email" position="after">     
                    <field name="country"/>


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.


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

Thierry Godin
on 10/13/14, 6:25 AM

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!

Dark Shield
on 10/14/14, 9:49 AM

swapnil wagh

--swapnil wagh--
| 6 5 8
Pune, India
--swapnil wagh--

My name is Swapnil A. Wagh. I studied Master Of computer Science and work as a Software Engineer. I’m a technology enthusiast and always eager to learn new and exciting technologies. I’m constantly looking for innovative solutions to age-old problems that push the limits of what we conceive to be possible.

swapnil wagh
On 10/14/14, 11:30 AM

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

Ill test it today thank you

Dark Shield
on 10/14/14, 12:42 PM
Hengky Zhang
On 10/14/14, 8:35 AM

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

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

Dark Shield
on 10/14/14, 9:47 AM
Dark Shield
On 10/15/14, 4:08 AM


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


On 9/11/15, 8:26 AM

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 

OpenERP Vietnam
On 10/15/14, 12:11 PM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 10/13/14, 1:51 AM
Seen: 2488 times
Last updated: 9/11/15, 8:26 AM