Hi,
I'm trying to add a custom field to the wizard Configure Your Document Layout
, like this:
But the problem is that I don't know how to inherit base.document.layout
.
When I try to inherit I get the following error: TypeError: Model 'base.document.layout' does not exist in registry.
That's probably because it's a TransientModel, but how can I add the field if I can't inherit?
My code:
class BaseDocumentLayout(models.TransientModel):
_inherit = 'base.document.layout'
my_field = fields.Char('My Field')
Thanks in advance!