Hiiii,
How to inherit field to existing tables?
I've tried various things, but it's hard to understand,
i want to inherit my field(on my addons) to model asset.
this my code ;
class Aset(models.Model): #addons field
_inherit='asset.asset'
asset_number = fields.Char('Item Code/Reg', size=64)
no_pol=fields.Char('Police Number')
many_units=fields.Char('Number Of Units', default='1')
item_type_id=fields.Many2one('item_type', string='Item Type')
colour=fields.Char('Colour')
machine_number=fields.Char('Number Machine')
chassiss=fields.Char('Chassis Number')
fill_in_the_slider=fields.Char('Slider')
bpkb_no=fields.Char('BPKB No')
year=fields.Char('Year')
xml ;
<record model="ir.ui.view" id="asset_asset_form_view">
<field name="name">asset_asset_form</field>
<field name="model">asset.asset</field>
<field name="inherit_id" ref="asset.assets_form_view" />
<field name="arch" type="xml">
<page position='inside'>
<group position="inside">
<field name='serial'>
<group>
<field name='color'/>
</group>
</field>
</group>
</page>
Thanks before...