Odoo Help


This community 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.


[POS] [9.0] Communication with the Odoo Server

Gael Torrecillas
on 2/23/16, 6:33 AM 228 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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