Odoo Help

0

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

By
divya
on 7/11/14, 1:54 AM 532 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);
}

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

Register

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)

Stats

Asked: 7/11/14, 1:54 AM
Seen: 532 times
Last updated: 3/16/15, 8:10 AM