Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
5096 Vues

Hay,

I do object inheritance with _name != _inherit like in second part of doc

class custom_material(osv.osv):
    _name = 'network.material'
    _inherit = 'network.material'
    _columns = {
        'manuf_warranty': fields.boolean('Manufacturer warranty?'),
    }
    _defaults = {
        'manuf_warranty': lambda *a: False,
    }
custom_material()

Have you a tip to create a custom material from a network material (by copying it ?)

Avatar
Ignorer
Auteur Meilleure réponse

I've found the solution : You can use result of copy_data method of network material class in create method of custom material

Avatar
Ignorer

Hi. How can you do this?

Publications associées Réponses Vues Activité
3
juil. 18
3279
2
mai 15
31512
0
janv. 22
2110
2
juil. 16
7526
1
juil. 15
3396