← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 698002] Re: onchange functions get called when editing existing object

 

** Summary changed:

- Wrong currency field behaviour in manual invoice 
+ onchange functions get called when editing existing object

** Description changed:

  6.0 rc2
  
- I have accounting installed with EUR as reference currency
+ When editing existing objects, onchange functions get called which can
+ lose information configured by the user, even when no field has been
+ manually changed since opening the object.
+ 
+ Example: I have accounting installed with EUR as reference currency
  Create  a manual invoice and manually change the currency to USD and then press "Save and Edit" the currency is changed back to EUR but if you go straight away in the "List View " it shows still as USD
- If you do the same scenario and press "Save" instead of "Save and Edit" everything is fine
+ If you do the same scenario and press "Save" instead of "Save and Edit" everything is fine, but if you Edit from there, it gets changed back to EUR again.
+ 
+ Issue is journal_id field has onchange, onchange_journal_id gets called
+ and it sets currency to currency of the journal (EUR here), even though
+ I already set the data I want on the object.
  
  Regards
  
  Maurice

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/698002

Title:
  onchange functions get called when editing existing object

Status in OpenObject Web Client:
  In Progress

Bug description:
  6.0 rc2

When editing existing objects, onchange functions get called which can lose information configured by the user, even when no field has been manually changed since opening the object.

Example: I have accounting installed with EUR as reference currency
Create  a manual invoice and manually change the currency to USD and then press "Save and Edit" the currency is changed back to EUR but if you go straight away in the "List View " it shows still as USD
If you do the same scenario and press "Save" instead of "Save and Edit" everything is fine, but if you Edit from there, it gets changed back to EUR again.

Issue is journal_id field has onchange, onchange_journal_id gets called and it sets currency to currency of the journal (EUR here), even though I already set the data I want on the object.

Regards

Maurice







References