← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-client-web/6.0-opw-5537-sma into lp:openobject-client-web/6.0

 

Sananaz (Open ERP) has proposed merging lp:~openerp-dev/openobject-client-web/6.0-opw-5537-sma into lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5537-sma/+merge/60380

Hello,

To generate problem install `Warehouse` 
- Go to Delivery Orders > Create new order
- Add Stock Moves
- Click on Validate

Problem is it shows 2 buttons. 
1. Return Products
2. Create Invoice 

`Create Invoice` is not display at this time because put the `attrs` on it.
{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}

Problem is small it can't change element so condition goes wrong.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-5537-sma/+merge/60380
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client-web/6.0-opw-5537-sma.
=== modified file 'addons/openerp/static/javascript/form_state.js'
--- addons/openerp/static/javascript/form_state.js	2011-04-19 14:06:37 +0000
+++ addons/openerp/static/javascript/form_state.js	2011-05-09 13:49:23 +0000
@@ -180,7 +180,7 @@
     for (var i = 0; i < expr.length; i++) {
 
         var ex = expr[i];
-        var elem;
+        var elem = null;
         if (ref_elem.parents('table.grid').length) {
             var parent = ref_elem.parents('tr.grid-row');
             elem = parent.find(idSelector(prefix + ex[0]));


Follow ups