← Back to team overview

openerp-dev-web team mailing list archive

[Bug 693492] [NEW] Manufacturing order form view generates extra hidden fields

 

Public bug reported:

In the manufacturing order form in edit mode, in the tab "Scheduled
Products", the generated html of the one2many contains a hidden field
for each row with the same input name. This cause the web client to send
an array of values to the orm which cause an error.


        <tr class="grid-row grid-row-even" record="63">
--->    <input type="hidden" name="product_uos_qty" class="hidden" value="0.00"
    kind="float" id="product_uos_qty" value="0.00"/>

        <input type="hidden" name="product_uos" class="hidden" value=""
    kind="many2one" relation="product.uom" id="product_uos" value=""/>

Concerned mako : listgrid.mako :

    % for field, field_attrs in hiddens:
        ${data[field].display()}
    % endfor

** Affects: openobject-client-web
     Importance: Medium
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

** Changed in: openobject-client-web
   Importance: Undecided => Medium

** Changed in: openobject-client-web
       Status: New => Confirmed

** Changed in: openobject-client-web
     Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)

-- 
You received this bug notification because you are a member of OpenERP
SA's Web Client R&D, which is a bug assignee.
https://bugs.launchpad.net/bugs/693492

Title:
  Manufacturing order form  view generates extra hidden fields

Status in OpenObject Web Client:
  Confirmed

Bug description:
  In the manufacturing order form in edit mode, in the tab "Scheduled Products", the generated html of the one2many contains a hidden field for each row with the same input name. This cause the web client to send an array of values to the orm which cause an error.


        <tr class="grid-row grid-row-even" record="63">
--->    <input type="hidden" name="product_uos_qty" class="hidden" value="0.00"
    kind="float" id="product_uos_qty" value="0.00"/>

        <input type="hidden" name="product_uos" class="hidden" value=""
    kind="many2one" relation="product.uom" id="product_uos" value=""/>

Concerned mako : listgrid.mako :

    % for field, field_attrs in hiddens:
        ${data[field].display()}
    % endfor





Follow ups

References