跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. 当产品数量超过一定量的时候,pos模块本地存储的容量无法满足,怎么破?

当产品数量超过一定量的时候,pos模块本地存储的容量无法满足,怎么破?

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
8 帖子 6 发布者 6.3k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • P 离线
    P 离线
    pingwe
    写于 最后由 编辑
    #1

    当产品数量超过一定量的时候,pos模块本地存储的容量无法满足,怎么破?
    Uncaught Error: QuotaExceededError: DOM Exception 22
    NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached

    1 条回复 最后回复
    0
    • O 离线
      O 离线
      old_taoist
      写于 最后由 编辑
      #2

      你有多少item就超出了?

      1 条回复 最后回复
      0
      • wjfonhandW 离线
        wjfonhandW 离线
        wjfonhand
        写于 最后由 编辑
        #3

        LocalStorage has a hard 5.0MB on chrome.

        GoodERP -- Odoo China fork

        1 条回复 最后回复
        0
        • ieitzybI 离线
          ieitzybI 离线
          ieitzyb
          写于 最后由 编辑
          #4

          5.0MB?

          http://www.OuduPLM.com/ 苏州欧度软件,专注服装行业(鳴謝:37signals,Trello,ProcessON,重庆慧积,上海开阖)

          1 条回复 最后回复
          0
          • O 离线
            O 离线
            old_taoist
            写于 最后由 编辑
            #5

            [quote author=OpenERP製行业 link=topic=14813.msg27082#msg27082 date=1387237286]
            5.0MB?
            [/quote]
            那就少放图片

            1 条回复 最后回复
            0
            • mrshellyM 离线
              mrshellyM 离线
              mrshelly
              写于 最后由 编辑
              #6

              Chrome 应该可以配置这个参数吧?

              1 条回复 最后回复
              0
              • JoshuaJ 离线
                JoshuaJ 离线
                Joshua 管理员
                写于 最后由 编辑
                #7

                    /* The db module was intended to be used to store all the data needed to run the Point
                    * of Sale in offline mode. (Products, Categories, Orders, ...) It would also use WebSQL
                    * or IndexedDB to make the searching and sorting products faster. It turned out not to be
                    * a so good idea after all.
                    *
                    * First it is difficult to make the Point of Sale truly independant of the server. A lot
                    * of functionality cannot realistically run offline, like generating invoices.
                    *
                    * IndexedDB turned out to be complicated and slow as hell, and loading all the data at the
                    * start made the point of sale take forever to load over small connections.
                    *
                    * LocalStorage has a hard 5.0MB on chrome. For those kind of sizes, it is just better
                    * to put the data in memory and it's not too big to download each time you launch the PoS.
                    *
                    * So at this point we are dropping the support for offline mode, and this module doesn't really
                    * make sense anymore. But if at some point you want to store millions of products and if at
                    * that point indexedDB has improved to the point it is usable, you can just implement this API.
                    *
                    * You would also need to change the way the models are loaded at the start to not reload all your
                    * product data.
                    /

                    /
                PosLS is a localstorage based implementation of the point of sale database.
                    * FIXME: The Products definitions and categories are stored on the locastorage even tough they're
                    * always reloaded at launch. This could induce a slowdown because the data needs to be reparsed from
                    * JSON before each operation. If you have a huge amount of products (around 25000) it can also
                    * blow the 5.0MB localstorage limit.
                    */

                【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

                1 条回复 最后回复
                0

                • 登录

                • 没有帐号? 注册

                • 登录或注册以进行搜索。
                • 第一个帖子
                  最后一个帖子
                0
                • 版块
                • 标签
                • 热门
                • 用户
                • 群组