[6.1] Actions not working when the form has no fields
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Won't Fix
|
Medium
|
OpenERP R&D Web Team | |||
Odoo Web (MOVED TO GITHUB) | ||||||
6.1 |
Fix Released
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
This is the root of the previuosly reported bug #950690
In actions that have forms associated with no fields like Unreconcile Entries, Reconcile Entries, Post Journal Entries in page "Accounting/Journal Entries/Journal Items" the webclient fails with error:
""
Uncaught TypeError: Cannot read property 'type' of undefined
https:/
""
in chromiun browser and error
""
view.fields_
https:/
""
in firefox
Unreconcile Entries, for example has the followinf XML
<record id="account_
<field name="name"
<field name="model"
<field name="type"
<field name="arch" type="xml">
<form string=
</record>
And gives the mentioned errors.
Making the following chage the problem is solved
=== modified file 'addons/
--- addons/
+++ addons/
@@ -1345,7 +1345,10 @@
this.value = undefined;
- this.type = node.attrs.widget || view.fields_
+ if (view.fields_
+ this.type = 'string';
+ else
+ this.type = node.attrs.widget || view.fields_
But I supouse that this is not the best way to solve it
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openerp-web: | |
importance: | Low → Medium |
tags: | added: maintenance |
Hello, I can confirm mikel's patch solves the problem.