how to changes field types in BOM from one2many to float ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hi,
You need to redefine the field to change the field type using inheritance.
E.g. :
Original one2many field:
class mrp_bom(osv.osv):
_name = 'mrp.bom'
_description = 'Bill of Material'
_columns = {
'bom_lines': fields.one2many('mrp.bom', 'bom_id', 'BoM Lines'),
}
mrp_bom()
Do the following to change the field type to float:
class mrp_bom(osv.osv):
_name = 'mrp.bom'
_description = 'Bill of Material'
_inherit='mrp.bom'
_columns={
'bom_lines': fields.float(''BoM Lines'),
}
mrp_bom()
Hope this may help you.
error, i cant login, because error in mrp.login
in _inherit='mail.thread' should i change into _inherit='mrp.bom' ??
please help me
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
gru 17
|
4518 | ||
Concatenate two fields in a third one
Rozwiązane
|
|
2
sie 24
|
2450 | |
|
0
sty 24
|
1206 | ||
|
3
wrz 23
|
2306 | ||
Custom float field auto rounding?
Rozwiązane
|
|
4
wrz 18
|
5007 |