web_client doesnt show some inherited fields anymore

Bug #1180886 reported by Giorgio di Napoli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

i add a field sentpicking to stock_picking_out

    class stock_picking_out(osv.osv):
        _inherit = "stock.picking.out"
        _columns = {
                   'sentpicking': fields.boolean('Sent', readonly=True, help="It indicates that the delivery order has been sent."),
        }
        _defaults = {
            'sentpicking': False,
        }

I add the field to the treeview:

<record id="view_picking_out_tree_with_invoice_state" model="ir.ui.view">
            <field name="name">stock.picking.out.tree</field>
            <field name="model">stock.picking.out</field>
            <field name="inherit_id" ref="stock.view_picking_out_tree" />
            <field name="arch" type="xml">
                <field name="invoice_state" position="after">
                    <field name="sentpicking" />
                </field>
            </field>
        </record>

in the nightly builds of march this was working i could see checkboxes in the treeview.

no i updated to latest in mai. the column header in treeview is there but no checkboxes anymore :(

Revision history for this message
Giorgio di Napoli (notbossgroup) wrote :

additionall bug:

we had this code to change the order of the tree view

class stock_picking_out(osv.osv):
56 _name = "stock.picking.out"
57 _inherit = "stock.picking.out"
58 _order = "name desc"
59 stock_picking_out()

with latest update it didnt work anymore.

Revision history for this message
Giorgio di Napoli (notbossgroup) wrote :

if you do it on stock.picking.out it wont work
if you do it on stock.picking it will

Revision history for this message
Giorgio di Napoli (notbossgroup) wrote :

stock.picking works stock.picking.out not

description: updated
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

It is this change that you encountered: https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-opw-590100-ado/+merge/154917

See the related MP and bug for more information. See also https://bugs.launchpad.net/openobject-addons/+bug/1169998/comments/3. Workaround: add field to stock.picking, like you found out yourself.

Revision history for this message
Giorgio di Napoli (notbossgroup) wrote :

additional information for any further readers:

we added the fields now to both models: stock.picking and stock.picking.out

otherwise the view of stock.picking.out doesnt find field.

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.