5 lines
296 B
Python
5 lines
296 B
Python
from odoo import models, fields, api;# 导入模型、字段和api模块
|
|
class ResUsers(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
property_ids = fields.One2many('estate.property', 'seller_id', string='我的房产',domain="[('state', '!=', 'sold')]")# 关联房屋模型,排除已售房产 |