Odoo Help


How to extend Poin of Sale module (js and xml)

on 8/28/13, 9:00 AM 5,460 views

I'm trying to make module with some modifications of POS module (which are working now as hardcoded in the module )

For instance I want to change the search_and_categories function in widgets.js so I tried:

openerp.my_module = function(instance){
var module = instance.point_of_sale;
var _super_ = module.ProductCategoriesWidget.prototype.search_and_categories;

module.ProductCategoriesWidget.prototype.search_and_categories = function(category){
        some code here...

It does nothing (hardcoded directly it works)

also _product_search_string function in db.js

openerp.my_module= function(instance){
var module = instance.point_of_sale; 
var _super_ = module.PosLS.prototype._product_search_string;

module.PosLS.prototype._product_search_string = function(product){
   some code here...      

No result.

And would like to change the language and style of the ticket, the only way I know is modifying PosTicket in pos.xml and pos.css

tryed with

 <templates id="template" xml:space="preserve">
   <t t-extend="PosTicket">
        new code here...

No success. What is the way of doing that?


Thierry Godin

--Thierry Godin--
| 8 7 8
Collegien, France
--Thierry Godin--


Thierry Godin
On 8/28/13, 11:00 AM


Please take a look at this : Tutorial on module creation: POS Usecase, french+english

Best regards

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

0 follower(s)


Asked: 8/28/13, 9:00 AM
Seen: 5460 times
Last updated: 3/16/15, 8:10 AM