How to extend an osv.osv_memory class?
We are usign OpenERP Version 6.0.3.
The Problem:
We tried to extend from the class 'stock.
How to get to this wizard:
- create purchase order and proceed to the end of it
- then open "Receptions" for this purchase order
- open the reception
- in the receptions press "Process"
- now you get a wizard where you can see the field "cost"
Here we would like to have a decimal precision of 4 digits. So we tried to overwrite the class as follow:
class stock_partial_
_inherit = 'stock.
_columns = {
'cost' : fields.
}
stock_partial_
But this does not work, we still have a float with decimal precision of 2.
Could you please fix this bug and tell us what the changes are? How can you overwrite a field in an osv.osv_memory class?
Thanks.
Best regards,
Olivier Jossen
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier (brain-tec)
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #942647.