Comment 25 for bug 519220

Revision history for this message
Akshay Jain (akshay-jain-7983) wrote :

I think all of us have a valid point here. Best solution in my opinion would be as follows:

Have a configuration setting for stock where user gets two option to select from as below:

Option 1: Calculate weight automatically from moves.
If user selects this option then openerp calculates weight automatically and a button on form along side weight field is provided that says "Set weight manually". IF user will click that button then he is allowed to set weight manually and the button changes to "Calculate weight from moves" and that manually set value cannot be calculated automatic until user clicks the button AGAIN.
This option is useful for those situations where the automatic weight calculation is generic and only in 5-10% cases user needs manual weight setting.

Option 2: Manually enter weights
If user selects this option then openerp DOES NOT calculates weight automatically and user is allowed to enter it manually and a button on form along side weight field is provided that says "Calculate Weight from moves". IF user will click that button then openerp calculates weight from moves and the button changes to "Set weight manually" and that automatic value cannot be changed until user clicks the button AGAIN.
This option is useful for those situations where the manual weight setting is generic and only in 5-10% cases user needs automatic weight calculation.

Let me know if this is "better" becoz after all the discussions we had I believe that all of us are RIGHT and openerp needs to evolve. If this solution looks good then of course none of us will expect this before 5.2.