Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1471 Weergaven
"openeducat_core.menu_op_course_sub"
Is there any way to inherit a model and disable all the fields and add new custom fields in odoo 1


Avatar
Annuleer
Beste antwoord

May be You could use this code to Disable, You can try this if this works for you

class TestModel(models.Model):
_inherit = 'test.model'

# Disable all fields inherited from the existing model
_fields_blacklist = _inherit.fields_get().keys()

Avatar
Annuleer