UnboundLocalError: local variable 'diff' referenced before assignment

Bug #1312116 reported by sambasivarao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Incomplete
Undecided
Unassigned

Bug Description

This bug i am getting while validating purchase order and sales order. I have installed double validation purchse module also.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

Have you done any customization by yourself ? or have you installed any extra module from apps or from community .
Because we didnt use 'diff' name of variable on our purchase double validation module.

Thanks and waiting for your answer!

affects: openobject-server → openobject-addons
Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
sambasivarao (gs9783) wrote :

I am trying to work with multicompanies.
I have created three companies other than "yourcompany".
1.kellton
2.hyderabad
3.delhi
parent company "kellton" and "hyd" and "delhi" are subcompanies.
I had create one user for each company with manager credentials . Purchase and sales orders working perfectly with admin user.
when i login with any company user from these three companies , getting this bug.

Revision history for this message
sambasivarao (gs9783) wrote :

Thanks and waiting for your answer!

Revision history for this message
Parth Patel (parth.patel-openerp) wrote :

Hi,

I have checked this scenario but not facing any erro like "UnboundLocalError: local variable 'diff' referenced before assignment ".
(please check video for this)

Thanks.

Revision history for this message
sambasivarao (gs9783) wrote :

Thank you very much.
just now i trace out the problem. I didn't get this bug when i change company currency to "INR".
I configured all companies accounts templates to "indian accountig" but i did not change the company currency to "INR".
follow these steps you will get this error.
create company with currency "EUR" and configure company accounts with "indian accounting template".
give one purchase order and try to validate it.
Thanks and waiting for your answer!

Revision history for this message
sambasivarao (gs9783) wrote :

I have been working on open erp since one month Please help me to solve this problem.
Double validation for purchase order is solved by using "double validation purchase order" module. Please suggest a module to validate payments .

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.