mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update wechat payment , fix bug
This commit is contained in:
@@ -30,6 +30,7 @@ from . import ir_mail_server
|
||||
from . import mail_mail
|
||||
from . import ir_http
|
||||
from . import app_import
|
||||
from . import res_partner
|
||||
|
||||
|
||||
|
||||
|
||||
13
app_common/models/res_partner.py
Normal file
13
app_common/models/res_partner.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models, tools, _
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
def get_related_user_id(self):
|
||||
self.ensure_one()
|
||||
user = self.env['res.users'].sudo().with_context(active_test=False).search([('partner_id', '=', self.id)], limit=1)
|
||||
return user
|
||||
Reference in New Issue
Block a user