Community mailing list archives

community@mail.odoo.com

Re: 3 functional fields calculated on one function

by
Skillteam, Houssine BAKKALI
- 10/13/2015 09:08:05
have a look at the project.task model for an example, three function fields(total_hours, progress and delay_hours) are computed by one function(_hours_get).

and as said Graeme you should use multi in your fields declaration

2015-10-13 0:07 GMT+02:00 Graeme Gellatly <gdgellatly@gmail.com>:
use e.g. multi='vals' in your field declaration probably, hard to tell without all information

On Tue, Oct 13, 2015 at 7:12 AM, Humberto Arocha <hbto@vauxoo.com> wrote:
Hello Tibyan,

What do you mean with:

how to make it give different values as calculated?

Aren´t they already different?

In which way do you want them to be different?

Best Regards.

Quien suscribe,

Hbto


On Mon, Oct 12, 2015 at 4:40 AM, Tibyan Hussien <tibyan.hussien@visionvalley.net> wrote:
This function http://hastebin.com/quxizokico.py gives one value of val, 
val1 and val2 as zero, how to make it give different values as calculated?

Tibyan

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe