欢迎 odoo 实施交流!

分享和讨论最佳内容和新营销理念,打造专业形象,共同成为更好的odoo 实施人员。

注册

只限註冊用戶才可與社群互動。
此問題已被標幟
1 回覆
1430 瀏覽次數

How to add fields in odoo:

First, a subtype is a grouping of messages. We can configure the triggering conditions for subtypes in the code. Each follower can select the subtypes they are interested in for each specific document. If the document has a message of that subtype, Odoo will notify the followers who have subscribed to that subtype through the built-in messaging system/email. Parent: Sales order confirmed | Related field: team_id Here, the parent: "Sales team confirmed" is a subtype defined on the sales order, and the related field is the field name on the sales order that stores the sales team. The configuration here means: when a sales order is created, it will find the related

頭像
捨棄
作者

class zdstocklocation(models.Model):
     _inherit ='stock.location'  # Which model to add fields to
      name = fields.Char('Name') # Field name


Inheriting official models in Odoo and adding fields is that simple.

頭像
捨棄