Skip to Content
मेन्यू
This question has been flagged
1 Reply
5740 Views

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
Discard
Author Best Answer

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

Avatar
Discard

Hi. How can you do this?

Related Posts Replies Views Activity
3
जुल॰ 18
4087
2
मई 15
32751
0
जन॰ 22
2862
2
जुल॰ 16
8227
1
जुल॰ 15
3950