← Back to team overview

openerp-india team mailing list archive

[Bug 942301] Re: [6.1] bug with editable tree inside a one2many form

 

Checked the bug, the issue turns out to be in the addons: in the view
stock.move.tree3, the view uses the `state` field of the move_ids (stock
moves, on the third tab) to show or hide a button:

    <button name="action_done" states="confirmed,assigned"
string="Process" type="object" icon="gtk-go-forward"/>

but the view does not include the `state` field itself, so the
resolution blows up with the message you can see as the client can't
compute the visibility of the button.

I'm not sure if the button should go or the state field should be added
(adding a state field in invisible=1 in the view makes the error
disappear), so I just moved the bug to addons.

** Also affects: openobject-addons
   Importance: Undecided
       Status: New

** No longer affects: openerp-web

** No longer affects: openerp-web/6.1

** No longer affects: openerp-web/trunk

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

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

Title:
  [6.1] bug with editable tree inside a one2many form

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  To test you will need a chain of relations such as

  sale.order -> sale.order.line -> some one2many which is an editable
  list

  When you pop the order.line form everything appears OK.  Equally
  entering data in the form view of the final relation inside the
  order.line is fine.  But when you click create on the tree view the
  following error is popped.

  Firefox
  QWeb2 - template['ListView.row.form']: Runtime Error: TypeError: dict.frame is undefined
  http://localhost:18069/web/webclient/js:18953

  Chrome
  Uncaught Error: QWeb2 - template['ListView.row.form']: Runtime Error: TypeError: Cannot call method 'render' of undefined
  http://localhost:18069/web/webclient/js:18953

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


References