[7.0] pressing sub-view button causes TypeError in client JS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
Nicolas Vanhoren (OpenERP) |
Bug Description
I was trying to add a tree subview to an existing form (in this case, embedded within a <page>), and discovered that pressing the buttons that are in the tree caused the client to emit "TypeError: self.ViewManage
It turns out that by embedding the tree view where I did, I need to go through a few layers of __parentedParent to find the __parentedParent that had a menu property.
I've written a short patch that fixes this for me (see attached).
The form definition that exhibits this error:
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="phonecall_
model=
<field name="name"
<field name="model"
<field name="type"
<field name="inherit_id" ref="base.
<field name="arch" type="xml">
<data>
<page string="Internal Notes" position="before">
<page string="Phone Calls" attrs="
<field name="phonecall
</page>
</page>
</data>
</field>
</record>
</data>
</openerp>
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 18 lines (+7/-1)1 file modifiedaddons/web/static/src/js/views.js (+7/-1)
- Ronald Portier (Therp): Approve
- Holger Brunn (Therp): Approve (code review. no test)
-
Diff: 18 lines (+7/-1)1 file modifiedaddons/web/static/src/js/views.js (+7/-1)
Changed in openerp-web: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
Changed in openerp-web: | |
assignee: | OpenERP R&D Web Team (openerp-dev-web) → Nicolas (OpenERP) (niv-openerp) |
Hi Isaac,
can you believe I ran into this bug 10 minutes before you submitted this patch. I confirm that your patch works so I am submitting a merge proposal.