[Trunk/7.0/6.1] View doesn't update on one2many button action

Bug #1112169 reported by Andrew
68
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Web Team

Bug Description

In <record id="view_move_tree" model="ir.ui.view"> there are two buttons to fill in the tracking_id field.

Before I pulled the latest version of openerp addons tonight, when I pushed the new pack button

<button name="%(split_into)d" string="Put in a new pack" type="action"
                        groups="product.group_stock_packaging"
                        icon="terp-accessories-archiver+"
                        states="draft,assigned,confirmed,done"/>

A new tracking_id would get inserted into the tree view. Now that functionality is broken. You have to save the stock.picking.in to get that button to appear, and even then pressing that button does nothing.

You now have to go into form view and press the "new pack" button to get a new entry for tracking_id on stock.picking.in

Please make it so pressing the new pack button in the tree view will create a new tracking_id.

Related, when you first add a new item to and you are entering the details in the form view, the new pack button is grayed out until you save, close the screen and re-enter. Please make it so that a new pack can be split once you choose the product.

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote : Re: [Trunk] button on stock_picking - split pack does nothing

Hello Andrew,

I have checked your scenario, I have face the same at two different Place. Let's see one by one...

Issue#1 : In Incoming Shipments, when enter the product line at that time "pack button" is grayed button until save or close. as per your suggestion It's should be enable after select the product. but current behave is right because "Packing" is performed on existing record line. while new enter item is not exist. so we can not consider this Issue.

Issue#2 : In Incoming Shipments view, when pressing the button "pack" or "split" from product line. At that time nothing happens. But after refresh this page, product line is updated. so It's should be fix from web-client side.

So I am confirm this bug for "Issue#2" with low Importance and assign to web team.

Thanks!

summary: - button on stock_picking - split pack does nothing
+ [Trunk] button on stock_picking - split pack does nothing
affects: openobject-addons → openerp-web
Changed in openerp-web:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
summary: - [Trunk] button on stock_picking - split pack does nothing
+ [Trunk/7.0/6.1] View doesn't update on one2many button action
Revision history for this message
Cedric Le Brouster(OpenFire) (cedric-lebrouster) wrote :

Hello,

Like i said in https://bugs.launchpad.net/openerp-web/+bug/1182392 this started with 6.1 patch http://bazaar.launchpad.net/~openerp/openerp-web/6.1/revision/2361.1.1

I tried to mix up the 2 versions and I got something that seams to work in 6.1 (see attachment).
I tried again for 7.0 bug got an error, some functions changed and I'm not a javascript expert so I gave up.
I hope this helps though

Revision history for this message
Cedric Le Brouster(OpenFire) (cedric-lebrouster) wrote :

I justed try again with this code for v7.0 and now it works

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.