Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5126 Представления

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 ?)

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить

Hi. How can you do this?

Related Posts Ответы Просмотры Активность
3
июл. 18
3321
2
мая 15
31566
0
янв. 22
2188
2
июл. 16
7587
1
июл. 15
3427