← Back to team overview

credativ team mailing list archive

[Bug 896604] Re: [6.0 STOCK] internal move, search_default_available doesn't work

 

Hello Sébastien,

Thanks for reporting this issue.

Its been fixed in,
lp:~openerp-dev/openobject-addons/6.0-opw-50804-rha
Revision ID: rha@xxxxxxxxxxx-20111128061923-gjg7ldm6x1ep48mu
Revision 4936

Regards.

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/896604

Title:
  [6.0 STOCK] internal move, search_default_available doesn't work

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  Hi
  I find a bug in the stock module.
  Indeed if you check in the stock_view.xml, you will see that the first filter doesn't have a name and the name should be "available"

          <record id="view_picking_internal_search" model="ir.ui.view">
              <field name="name">stock.picking.internal.search</field>
              <field name="model">stock.picking</field>
              <field name="type">search</field>
              <field name="arch" type="xml">
                  <search string="Internal Picking List">
                      <group col="8" colspan="4">
   HERE=>         <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
                          <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
                          <separator orientation="vertical"/>
                          <field name="name"/>

  
  latter in the code in the action_search, we try to set as default the filter available

  HERE=>   <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
              <field name="search_view_id" ref="view_picking_internal_search"/>
              <field name="help">Internal Moves display all inventory operations you have to perform in your warehouse. All operations can be categorized into stock journals, so that each worker has his own list of operations to perform in his own journal. Most operations are prepared automatically by OpenERP according to your preconfigured logistics rules, but you can also record manual stock operations.</field>
          </record>

  But as the filter doen't have a name it's not working.
  Just replace
  -         <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
  By
  +         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>

  
  And you're done.

  Have a nice day ;)

  PS : I send a mail to warranty team my customer impacted have an OPW

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/896604/+subscriptions


References