我尝试在 res.partner 中创建新字段并在会计模块中的aged_payble 中显示,但出现错误 partner_code_seq 字段不存在
_inherit = "account.aged.payable"
partner_id = fields.Many2one('res.partner')
partner_code_seq = fields.Char(group_operator='max')
@api.model
def _get_column_details(self, options):
print("Hello")
res = super(ReportAccountAgedPayable, self)._get_column_details(options)
res += [
self._field_column('partner_code_seq')
]
return res