Skip to Content
Menu
This question has been flagged
2 Replies
1155 Views

Hi everyone,

I'm developing an Odoo 17 addon to add a custom field for invoicing. I'm targeting the Invoicing tree view.

Here's my code structure:


account_move py

from odoo import models, fields


class AccountMove(models.Model):
_inherit = 'account.move'

custom_field = fields.Char(string='Custom Field')
odoo import models, fields

account_move_views.xml



account.move.tree.inherit
account.move









The problem is, the custom field isn't showing up in the tree view. There are no errors in the console either.

Can anyone help me troubleshoot this?

Avatar
Discard
Best Answer

Hi,
The XML code is missing from the post, make sure that you are inheriting the right tree view and also ensure to import the file inside the manifest and upgrade the app in the database.

Thanks

Avatar
Discard
Author Best Answer

Oh, thanks! 

You're absolutely right. I think some information got lost while I was writing the post.

Anyway, I modified the post and actually found a solution on my own. Thanks for your help anyway!


Avatar
Discard