Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1315 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор Найкраща відповідь

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!


Аватар
Відмінити