Odoo 10
for example: a float x_uvp is in sale.order. i want to calculate x_uvp /1,19.
What do i have to put into depends and calculate?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Odoo 10
for example: a float x_uvp is in sale.order. i want to calculate x_uvp /1,19.
What do i have to put into depends and calculate?
Have you checked the ORM API documentation (https://www.odoo.com/documentation/9.0/reference/orm.html#computed-fields)?
Are you going to add an additional field to the model? If so something like the following should work.
x_uvp_display = fields.Float(string='UVP scaled'. compute='_compute_x_uvp_display')
@api.onchange('x_uvp')
@api.depends('x_uvp')
def _compute_x_uvp_display(self):
for rec in self:
rec.x_uvp_display = rec.x_uvp / 1.19
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
2
de març 24
|
1854 | ||
|
2
de nov. 19
|
6732 | ||
|
1
de febr. 24
|
1608 | ||
|
2
de gen. 24
|
1929 | ||
|
1
de maig 23
|
14308 |
The value 1.19 is always fix? or coming from any other input field?