如何使用相关字段(计算此相关字段)使field_name动态?

时间:2019-05-19 03:16:08

标签: python odoo-12

如何为与另一个模型(odoo 12)中另一个字段相关的字段使用动态名称?

计算字段:

from_date_month = fields.Char(string="Months", compute='get_from_date_month')

这是我的领域:

month = fields.Char(string="Month", related='cashflow_id.from_date_month')

0 个答案:

没有答案