标签:rds client ati div records 字段 date his 安全
publisher_id = fields.Many2one(comodel_name= ‘res.partner‘, domain=‘‘,context={},ondelete=‘‘,auto_join=‘‘,delegate=‘‘,string=‘Publisher‘)
many-to-one模型字段在数据表中创建一个字段,并带有指向关联表的外键,其中为关联记录的数据库 ID。以下是many-to-one字段可用的关键字参数:
published_book_ids = fields.One2many(
comodel_name= ‘library.book‘, # related model
author_ids = fields.Many2many(
class Many2many(_RelationalMulti):
""" Many2many field; the value of such a field is the recordset.
:param comodel_name: name of the target model (string)
The attribute ``comodel_name`` is mandatory except in the case of related
fields or field extensions.
:param relation: optional name of the table that stores the relation in
the database (string)
:param column1: optional name of the column referring to "these" records
in the table ``relation`` (string)
:param column2: optional name of the column referring to "those" records
in the table ``relation`` (string)
The attributes ``relation``, ``column1`` and ``column2`` are optional. If not
given, names are automatically generated from model names, provided
``model_name`` and ``comodel_name`` are different!
:param domain: an optional domain to set on candidate values on the
client side (domain or string)
:param context: an optional context to use on the client side when
handling that field (dictionary)
:param limit: optional limit to use upon read (integer)
"""
标签:rds client ati div records 字段 date his 安全
原文地址:https://www.cnblogs.com/fly-kaka/p/11018779.html