Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Why web/action/load return domain contains python code from OpenERP 7.0?

Subscribe

Get notified when there's activity on this post

This question has been flagged
android
7981 Views
Avatar
Claud Kho

When i POST data to web/action/load from my Android device, i got following data:

{ "id" : "r482",
  "jsonrpc" : "2.0",
  "result" : { "auto_refresh" : 0,
      "auto_search" : true,
      "context" : "{'search_default_in':1}",
      "domain" : "[('type','=','in'),('day','<=', time.strftime('%Y-%m-%d')),('day','>',(context_today()-datetime.timedelta(days=15)).strftime('%Y-%m-%d'))]",
      "filter" : false,
      "flags" : {  },
      "groups_id" : [  ],
      "help" : false,
      "id" : 340,
      "limit" : 80,
      "multi" : false,
      "name" : "Incoming Products",
      "res_id" : 0,
      "res_model" : "report.stock.move",
      "search_view" : "{'name': u'report.stock.move.search', 'fields': {'categ_id': {'domain': [], 'string': 'Product Category', 'views': {}, 'relation': 'product.category', 'context': {}, 'selectable': True, 'type': 'many2one'}, 'product_id': {'domain': [], 'string': 'Product', 'views': {}, 'readonly': True, 'relation': 'product.product', 'context': {}, 'selectable': True, 'type': 'many2one'}, 'partner_id': {'domain': [], 'string': 'Partner', 'views': {}, 'readonly': True, 'relation': 'res.partner', 'context': {}, 'selectable': True, 'type': 'many2one'}, 'stock_journal': {'domain': [], 'string': 'Stock Journal', 'views': {}, 'relation': 'stock.journal', 'context': {}, 'selectable': True, 'type': 'many2one', 'select': True}, 'company_id': {'domain': [], 'string': 'Company', 'views': {}, 'readonly': True, 'relation': 'res.company', 'context': {}, 'selectable': True, 'type': 'many2one'}, 'location_dest_id': {'domain': [], 'string': 'Dest. Location', 'views': {}, 'readonly': True, 'relation': 'stock.location', 'context': {}, 'selectable': True, 'type': 'many2one', 'select': True, 'help': 'Location where the system will stock the finished products.'}, 'date': {'selectable': True, 'readonly': True, 'type': 'date', 'string': 'Date', 'views': {}}, 'location_id': {'domain': [], 'string': 'Source Location', 'views': {}, 'readonly': True, 'relation': 'stock.location', 'context': {}, 'selectable': True, 'type': 'many2one', 'select': True, 'help': 'Sets a location if you produce at a fixed location. This can be a partner location if you subcontract the manufacturing operations.'}}, 'arch': '<search string=\"Moves Analysis\">\\n                <filter string=\"Done\" name=\"done\" icon=\"terp-dialog-close\" domain=\"[(\\'state\\',\\'=\\',\\'done\\')]\" help=\"Completed Stock-Moves\"/>\\n                <filter string=\"Todo\" icon=\"terp-gtk-go-back-rtl\" domain=\"[(\\'state\\',\\'in\\',(\\'assigned\\',\\'waiting\\',\\'confirmed\\'))]\" help=\"Future Stock-Moves\"/>\\n                <separator/>\\n                <filter icon=\"terp-go-home\" name=\"in\" string=\"Incoming\" domain=\"[(\\'type\\',\\'=\\',\\'in\\')]\"/>\\n                <filter icon=\"terp-go-home\" name=\"internal\" string=\"Internal\" domain=\"[(\\'type\\',\\'=\\',\\'internal\\')]\"/>\\n                <filter icon=\"terp-go-home\" name=\"out\" string=\"Outgoing\" domain=\"[(\\'type\\',\\'=\\',\\'out\\')]\"/>\\n                <field name=\"product_id\" default_focus=\"1\" modifiers=\"{"readonly": true}\"/>\\n                <field name=\"partner_id\" context=\"{\\'contact_display\\':\\'partner\\'}\" modifiers=\"{"readonly": true}\"/>\\n                <group expand=\"0\" string=\"Extended Filters...\">\\n                    <field name=\"location_id\" modifiers=\"{"readonly": true}\"/>\\n                    <field name=\"location_dest_id\" modifiers=\"{"readonly": true}\"/>\\n                    <field name=\"categ_id\" modifiers=\"{}\"/>\\n                    <field name=\"stock_journal\" modifiers=\"{}\"/>\\n                    <field name=\"company_id\" invisible=\"1\" modifiers=\"{"invisible": true, "readonly": true}\"/>\\n                    <field name=\"date\" modifiers=\"{"readonly": true}\"/>\\n                </group>\\n                <group expand=\"1\" string=\"Group By...\">\\n                    <filter name=\"group_partner\" string=\"Partner\" icon=\"terp-partner\" context=\"{\\'group_by\\':\\'partner_id\\'}\"/>\\n                    <filter name=\"group_categ_id\" string=\"Product Category\" icon=\"terp-stock_symbol-selection\" context=\"{\\'group_by\\':\\'categ_id\\'}\"/>\\n                    <filter name=\"group_product\" string=\"Product\" icon=\"terp-accessories-archiver\" context=\"{\\'group_by\\':\\'product_id\\'}\"/>\\n                    <filter name=\"group_picking\" string=\"Shipment\" icon=\"terp-accessories-archiver\" context=\"{\\'group_by\\':\\'picking_id\\'}\"/>\\n                    <filter string=\"Source Location\" name=\"src_location\" icon=\"terp-gtk-jump-to-rtl\" context=\"{\\'group_by\\':\\'location_id\\'}\"/>\\n                    <filter string=\"Dest. Location\" name=\"dest_location\" icon=\"terp-gtk-jump-to-ltr\" context=\"{\\'group_by\\':\\'location_dest_id\\'}\"/>\\n                    <filter string=\"Type\" name=\"group_type\" icon=\"terp-stock_symbol-selection\" context=\"{\\'group_by\\':\\'type\\'}\" help=\"Shipping type specify, goods coming in or going out\"/>\\n                    <filter string=\"Status\" name=\"group_state\" icon=\"terp-stock_effects-object-colorize\" context=\"{\\'group_by\\':\\'state\\'}\"/>\\n                    <filter string=\"Stock journal\" name=\"group_stock_journal\" icon=\"terp-folder-orange\" context=\"{\\'group_by\\':\\'stock_journal\\'}\"/>\\n                    <filter string=\"Company\" name=\"group_state\" icon=\"terp-go-home\" context=\"{\\'group_by\\':\\'company_id\\'}\" invisible=\"1\" modifiers=\"{"invisible": true}\"/>\\n                    <filter string=\"Day\" icon=\"terp-go-today\" context=\"{\\'group_by\\':\\'day\\'}\" help=\"Day Planned\"/>\\n                    <filter string=\"Month\" icon=\"terp-go-month\" context=\"{\\'group_by\\':\\'date\\'}\" help=\"Month Planned\"/>\\n                    <filter string=\"Year\" icon=\"terp-go-year\" context=\"{\\'group_by\\':\\'year\\'}\" help=\"Year Planned\"/>\\n                </group>\\n            </search>', 'model': 'report.stock.move', 'type': u'search', 'view_id': 536, 'field_parent': False}",
      "search_view_id" : false,
      "src_model" : false,
      "target" : "current",
      "type" : "ir.actions.act_window",
      "usage" : false,
      "view_id" : [ 544,
          "report.stock.move.graph"
        ],
      "view_ids" : [  ],
      "view_mode" : "graph,list",
      "views" : [ [ 544,
            "graph"
          ],
          [ false,
            "list"
          ]
        ]
    }
}

is there a way to convert the domain value to json array in following args:

{ "id" : "r507",
  "jsonrpc" : "2.0",
  "method" : "call",
  "params" : { "args" : [ [ [ "type",
              "=",
              "in"
            ],
            [ "day",
              "<=",
              "2013-09-19"
            ],
            [ "day",
              ">",
              "2013-09-04"
            ],
            [ "type",
              "=",
              "in"
            ]
          ],
          [ "product_qty",
            "categ_id"
          ],
          [ "categ_id" ]
        ],
      "context" : { "lang" : "en_US",
          "tz" : "Europe/Brussels",
          "uid" : 1
        },
      "kwargs" : { "context" : { "lang" : "en_US",
              "search_default_in" : 1,
              "tz" : "Europe/Brussels",
              "uid" : 1
            } },
      "method" : "read_group",
      "model" : "report.stock.move",
      "session_id" : "6a24b963778f436fbe4d901c1d27ac24"
    }
}
0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
odoo mobile android framework
android
Avatar
Avatar
2
अक्तू॰ 16
8788
Did anyone test the openerp CRM Sales android app ?
android
Avatar
Avatar
1
मार्च 15
4845
Rental via mobil app
rental android
Avatar
0
मई 22
2029
Integration query via API
api android
Avatar
0
अग॰ 21
2569
Need an Android/iOS app for Odoo Solved
android iphone
Avatar
Avatar
Avatar
Avatar
Avatar
6
दिस॰ 23
38523
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now