Feng’ Blog

开源一个基于odoo12上集成支付宝支付的模块
开源一个基于odoo12集成支付宝支付的功能模块目前项目处于开发状态,需要一起的小伙伴可以留言或到我的github...
扫描右侧二维码阅读全文
11
2019/04

开源一个基于odoo12上集成支付宝支付的模块

zhifubaologo.png

开源一个基于odoo12集成支付宝支付的功能模块

目前项目处于开发状态,需要一起的小伙伴可以留言或到我的github上联系额

项目地址: https://github.com/suxuefeng20/odooAliPay

主要功能:

  • 用户登录授权,含扫码登录功能
  • 当面付
  • 电脑网站支付
  • odoo商城支付宝支付
  • 单笔转账到支付宝账户
  • ……..

主要根据《蚂蚁金服开放平台文档中心:https://docs.open.alipay.com/ 》的接口进行开发。

Last modification:April 11th, 2019 at 11:12 pm
If you think my article is useful to you, please feel free to appreciate

8 comments

  1. aleo

    方便加一下您的扣扣吗?419585868

  2. aleo

    安装支付宝的时候会出现报错!

    1. Feng’ Blog
      @aleo

      注意是12版本,10版本和11貌似不兼容

    2. Feng’ Blog
      @aleo

      支付宝最近没时间做,没有做完的。但是不会安装报错。我测试的是企业版和社区版

      1. aleo
        @Feng’ Blog

        我这边是12的企业版,安装的时候出现错误提示
        Server Error
        Traceback (most recent call last):
        File "/opt/odoo12/odoo/http.py", line 654, in _handle_exception
        return super(JsonRequest, self)._handle_exception(exception)
        File "/opt/odoo12/odoo/http.py", line 312, in _handle_exception
        raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
        File "/opt/odoo12/odoo/tools/pycompat.py", line 87, in reraise
        raise value
        File "/opt/odoo12/odoo/http.py", line 696, in dispatch
        result = self._call_function(**self.params)
        File "/opt/odoo12/odoo/http.py", line 344, in _call_function
        return checked_call(self.db, *args, **kwargs)
        File "/opt/odoo12/odoo/service/model.py", line 97, in wrapper
        return f(dbname, *args, **kwargs)
        File "/opt/odoo12/odoo/http.py", line 337, in checked_call
        result = self.endpoint(*a, **kw)
        File "/opt/odoo12/odoo/http.py", line 939, in __call__
        return self.method(*args, **kw)
        File "/opt/odoo12/odoo/http.py", line 517, in response_wrap
        response = f(*args, **kw)
        File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 966, in call_button
        action = self._call_kw(model, method, args, {})
        File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 954, in _call_kw
        return call_kw(request.env[model], method, args, kwargs)
        File "/opt/odoo12/odoo/api.py", line 749, in call_kw
        return _call_kw_multi(method, model, args, kwargs)
        File "/opt/odoo12/odoo/api.py", line 736, in _call_kw_multi
        result = method(recs, *args, **kwargs)
        File "", line 2, in button_immediate_install
        File "/opt/odoo12/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
        return method(self, *args, **kwargs)
        File "/opt/odoo12/odoo/addons/base/models/ir_module.py", line 444, in button_immediate_install
        return self._button_immediate_function(type(self).button_install)
        File "/opt/odoo12/odoo/addons/base/models/ir_module.py", line 553, in _button_immediate_function
        modules.registry.Registry.new(self._cr.dbname, update_module=True)
        File "/opt/odoo12/odoo/modules/registry.py", line 86, in new
        odoo.modules.load_modules(registry._db, force_demo, status, update_module)
        File "/opt/odoo12/odoo/modules/loading.py", line 421, in load_modules
        loaded_modules, update_module, models_to_check)
        File "/opt/odoo12/odoo/modules/loading.py", line 313, in load_marked_modules
        perform_checks=perform_checks, models_to_check=models_to_check
        File "/opt/odoo12/odoo/modules/loading.py", line 222, in load_module_graph
        load_data(cr, idref, mode, kind='data', package=package, report=report)
        File "/opt/odoo12/odoo/modules/loading.py", line 68, in load_data
        tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
        File "/opt/odoo12/odoo/tools/convert.py", line 797, in convert_file
        convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
        File "/opt/odoo12/odoo/tools/convert.py", line 844, in convert_csv_import
        raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
        Exception: 模块加载 alipay 失败: 文件 alipay/security/ir.model.access.csv 无法处理:
        在字段'Group'中没找到匹配的记录外部 ID 'alipay.alipay_user_group'
        在字段'Group'中没找到匹配的记录外部 ID 'alipay.alipay_user_group'
        在字段'Group'中没找到匹配的记录外部 ID 'alipay.alipay_manager_group'
        在字段'Group'中没找到匹配的记录外部 ID 'alipay.alipay_manager_group'

        1. Feng’ Blog
          @aleo

          新的代码已修复这个问题

          1. aleo
            @Feng’ Blog

            您这效率真高 !

        2. Feng’ Blog
          @aleo

          这是由于ir.model.access.csv权限控制文件出错了,我到时看一下再更新上去就好了

Leave a Comment