This question has been flagged
465 Views

Hi, 

I am trying to get the total_amount_company and divide it by 6 and show the result in a field in expenses form. that happens when there is a unit price etc.

I tried to do it with a module but no joy, too many issues. Now I am trying to do it from the web gui. I create a new field and I go to the advanced properties, then compute and I add:

for expense in self:
expense.x_divide = expense.total_amount_company / 6

then on dependencies I add: total_amount_company

I don't get why is not working, any ideas?

Avatar
Discard