Odoo Help


How can we browse two table data at a time in single function(fx) for google spreed sheets??

on 7/11/14, 1:54 AM 783 views

Hi frnds,

 Can any one know about the  google spreed sheets. In this we can edit the scripting of the sheet, by using that below code is written here in a single oe_browse function  we are taking only one table or model data, but i want two tables data to browse in that function plz help the code

function oe_browse(model, fields, domain, sort, limit){
  if(typeof model !== "string"){
   throw "model arg expecting string";
  if(typeof fields !== "string"){
    throw "fields arg expecting comma separated field names";
  if (!domain) domain = "[]";
  if(typeof domain !== "string"){
    throw "domain arg expecting string";
  if(sort && typeof sort !== "string"){
    throw "sort arg expecting string";
  if(limit && typeof limit !== "number"){
    throw "limit arg expecting number";
  fields = fields.replace(/\s+/g, ",").split(",");
  if(domain) {
    domain = domain.replace(/\'/g, '"');
  domain = Utilities.jsonParse(domain);
  var records = seach_read(model, fields, domain, sort, limit);
  return parse_records_for_ss(records, fields);

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: 7/11/14, 1:54 AM
Seen: 783 times
Last updated: 3/16/15, 8:10 AM