Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1319 Vizualizări

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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!


Imagine profil
Abandonează