Odoo Help


[POS] [9.0] Communication with the Odoo Server

Gael Torrecillas
on 2/23/16, 6:33 AM 559 views


I try to recover my object 'stock.production.lot' in POS with one ID.

So I used .query, shown in the odoo's tutorial, and I have :

 var Model = require('web.Model'); 
var model = new Model('stock.production.lot');
    .filter([['id', '=', line.get_serial()]])
    .done(function (stock) { 
        line.set_price(stock.suggested_price) ;

with line = new pos_model.Orderline({}, {pos: this.pos, order: this, product: product});

and get_serial() is a Orderline's function return one id

But is I add this code, my pos.js isn't load on my pos, I think that one error in this code but I don't know where is it.

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

1 follower(s)


Asked: 2/23/16, 6:33 AM
Seen: 559 times
Last updated: 2/23/16, 6:42 AM