Advertisement
Guest User

error-crearvariable

a guest
Sep 19th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.28 KB | None | 0 0
  1. ERROR qrhcin openerp.osv.orm: Can't find field 'observations' in the following view parts composing the view of object model 'stock.picking.out':
  2. * stock.picking.out.form.new.inh
  3.  
  4. Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
  5. 2014-09-19 13:45:01,016 2744 ERROR qrhcin openerp.addons.base.ir.ir_ui_view: Can't render view health_center_warehouse.view_picking_out_form_new for model: stock.picking.out
  6. Traceback (most recent call last):
  7. File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 126, in _check_render_view
  8. fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
  9. File "/opt/openerp/solt-qrhcin_src/addons/health_center_warehouse/stock.py", line 235, in fields_view_get
  10. return super(stock_picking, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
  11. File "/opt/openerp/server/openerp/addons/stock/stock.py", line 728, in fields_view_get
  12. return super(stock_picking, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
  13. File "/opt/openerp/server/openerp/osv/orm.py", line 2260, in fields_view_get
  14. xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  15. File "/opt/openerp/server/openerp/osv/orm.py", line 1913, in __view_look_dom_arch
  16. fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  17. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  18. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  19. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  20. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  21. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  22. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  23. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  24. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  25. File "/opt/openerp/server/openerp/osv/orm.py", line 1776, in __view_look_dom
  26. xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
  27. File "/opt/openerp/server/openerp/osv/orm.py", line 1913, in __view_look_dom_arch
  28. fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  29. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  30. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  31. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  32. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  33. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  34. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  35. File "/opt/openerp/server/openerp/osv/orm.py", line 1859, in __view_look_dom
  36. fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  37. File "/opt/openerp/server/openerp/osv/orm.py", line 1776, in __view_look_dom
  38. xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
  39. File "/opt/openerp/server/openerp/osv/orm.py", line 1937, in __view_look_dom_arch
  40. raise except_orm('View error', msg)
  41. except_orm: ('View error', u"Can't find field 'observations' in the following view parts composing the view of object model 'stock.picking.out':\n * stock.picking.out.form.new.inh\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model")
  42. 2014-09-19 13:45:01,059 2744 ERROR qrhcin openerp.tools.convert: Parse error in /opt/openerp/solt-qrhcin_src/addons/health_center_warehouse/view/stock_view.xml:1192:
  43. <record id="view_picking_out_form_new" model="ir.ui.view">
  44. <field name="name">stock.picking.out.form.new.inh</field>
  45. <field name="model">stock.picking.out</field>
  46. <field name="inherit_id" ref="stock.view_picking_form"/>
  47. <field name="priority">17</field>
  48. <field name="arch" type="xml">
  49. <data>
  50. <xpath expr="/form/header" position="replace">
  51. <header>
  52. <button name="draft_validate" states="draft" string="Confirm &amp; Deliver" type="object" class="oe_highlight" groups="stock.group_stock_user"/>
  53. <button name="action_process" states="assigned" string="Deliver" type="object" class="oe_highlight" groups="stock.group_stock_user"/>
  54. <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done"/>
  55. </header>
  56. </xpath>
  57. <xpath expr="//field[@name='partner_id']" position="replace">
  58. <field name="partner_id" on_change="onchange_partner_in(partner_id)" string="Customer" domain="[('customer','=',True)]" invisible="1"/>
  59. <field name="warehouse_destination_id" required="True"/>
  60. <field name="location_dest_id" groups="stock.group_locations" invisible="True"/>
  61. <field name="warehouse_source_id" required="True"/>
  62. <field name="transported_by"/>
  63. <field name="location_id" groups="stock.group_locations" invisible="True"/>
  64. </xpath>
  65. <xpath expr="/form/sheet/notebook/page[@string='Additional Info']" position="attributes">
  66. <attribute name="attrs">{'invisible': True}</attribute>
  67. </xpath>
  68. <field name="origin" position="replace">
  69. <field name="origin_picking_id" domain="[('state','=','done')]" widget="selection"/>
  70. </field>
  71. <field name="move_lines" position="replace">
  72. <field name="move_lines" context="{'address_in_id': partner_id, 'tree_view_ref':'view_move_picking_tree', 'picking_type': 'internal'}">
  73. <form string="Stock Moves" version="7.0" create="false" edit="false" delete="false">
  74. <header>
  75. <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors="{&quot;waiting&quot;:&quot;blue&quot;,&quot;confirmed&quot;:&quot;blue&quot;}" invisible="1"/>
  76. </header>
  77. <sheet>
  78. <group>
  79. <group name="main_grp" string="Details">
  80. <group>
  81. <field name="product_id" on_change="onchange_product_id(product_id,False,False, False)" options="{'create_edit': false}"/>
  82. <field name="name"/>
  83. <label for="requested_qty"/>
  84. <div>
  85. <field name="requested_qty" required="True" class="oe_inline"/>
  86. </div>
  87. <label for="product_qty"/>
  88. <div>
  89. <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/>
  90. <field name="product_uom" groups="product.group_uom" class="oe_inline"/>
  91. </div>
  92. </group>
  93. <group>
  94. <field name="price_unit"/>
  95. <field name="taxes_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
  96. <field name="special_discount"/>
  97. <label for="product_uos_qty" groups="product.group_uos"/>
  98. <div groups="product.group_uos">
  99. <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" class="oe_inline"/>
  100. <field name="product_uos" class="oe_inline"/>
  101. </div>
  102. <field name="company_id" groups="base.group_multi_company" widget="selection"/>
  103. <field name="cost_element_id"/>
  104. </group>
  105. <group col="1">
  106. <field name="observations" string="Observaciones"/>
  107. </group>
  108. </group>
  109. <group name="origin_grp" string="Origin" invisible="1">
  110. <field name="origin"/>
  111. <field name="picking_id" domain="[('type','=',type)]"/>
  112. <field name="location_id" groups="stock.group_locations" invisible="True"/>
  113. <field name="create_date" groups="base.group_no_one"/>
  114. </group>
  115. <group name="destination_grp" string="Destination" invisible="1">
  116. <field name="location_dest_id" groups="stock.group_locations" invisible="True"/>
  117. <field name="partner_id" context="{'contact_display':'partner'}" groups="stock.group_locations"/>
  118. </group>
  119. </group>
  120.  
  121. <group string="Traceability">
  122. <group>
  123. <label for="prodlot_id" string="Lote de producci&#243;n" attrs="{'invisible': [('prodlot_id', '=', False)]}"/>
  124. <div groups="stock.group_production_lot" attrs="{'invisible': [('prodlot_id', '=', False)]}">
  125. <field name="prodlot_id" string="Lote de producci&#243;n" class="oe_inline" readonly="1"/>
  126. </div>
  127. <label for="register_type" string="Seleccionar por"/>
  128. <div>
  129. <field name="register_type"/>
  130. </div>
  131. </group>
  132. </group>
  133.  
  134. <notebook>
  135. <page string="Product by serial number" attrs="{'invisible': [('register_type', 'not in', ['serial','both'])]}">
  136. <field name="prodserial_ids" options="{'creatable': false}">
  137. <tree edit="false">
  138. <field name="product_id" string="Product"/>
  139. <field name="name" string="Serial No"/>
  140. <field name="warehouse_id"/>
  141. <field name="location_id" string="Actual location"/>
  142. <field name="prodlot_id" string="Production Lot" quick_create="false" options="{'create': false, 'create_edit': false, 'no_open':true}"/>
  143. <field name="life_date" string="Life date"/>
  144. <field name="days_expire" invisible="1"/>
  145. </tree>
  146. <form>
  147. <group>
  148. <field name="product_id" string="Product"/>
  149. <field name="name" string="Serial No"/>
  150. <field name="warehouse_id"/>
  151. <field name="location_id" string="Actual location"/>
  152. <field name="prodlot_id" string="Production Lot" quick_create="false" options="{'create': false, 'create_edit': false, 'no_open':true}"/>
  153. <field name="life_date" string="Life date"/>
  154. <field name="days_expire" invisible="1"/>
  155. </group>
  156. </form>
  157. </field>
  158. </page>
  159. <page string="Lotes de producci&#243;n33" attrs="{'invisible': [('register_type', '!=', 'lot')]}">
  160. <field name="split_lot_ids" widget="one2many" context="{'default_product_id':product_id}">
  161. <tree>
  162. <field name="product_id" string="Id del Producto" invisible="1"/>
  163. <field name="prodlot_id" string="Lote de producci&#243;n" on_change="on_change_lot(prodlot_id,context)" quick_create="false" options="{'create': false, 'create_edit': false, 'no_open':true}" domain="[('product_id','=',product_id)]"/>
  164. <field name="qty" string="Cantidad"/>
  165. <field name="observations" string="Observaciones"/>
  166. <field name="life_date" string="Fecha de vencimiento" readonly="1"/>
  167. </tree>
  168. <form>
  169. <group>
  170. <field name="product_id" invisible="1"/>
  171. <field name="prodlot_id" string="Lote de producci&#243;n" on_change="on_change_lot(prodlot_id,context)" quick_create="false" options="{'create': false, 'create_edit': false, 'no_open':true}" domain="[('product_id','=',product_id)]"/>
  172. <field name="stock_available" string="Cantidad del Lote" readonly="1"/>
  173. <field name="qty" string="Cantidad"/>
  174. <field name="life_date" string="Fecha de vencimiento" readonly="1"/>
  175. </group>
  176. </form>
  177. </field>
  178. </page>
  179. </notebook>
  180. </sheet>
  181. </form>
  182. </field>
  183. </field>
  184.  
  185. </data>
  186. </field>
  187. </record>
  188. Traceback (most recent call last):
  189. File "/opt/openerp/server/openerp/tools/convert.py", line 847, in parse
  190. self._tags[rec.tag](self.cr, rec, n)
  191. File "/opt/openerp/server/openerp/tools/convert.py", line 814, in _tag_record
  192. id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  193. File "/opt/openerp/server/openerp/addons/base/ir/ir_model.py", line 936, in _update
  194. model_obj.write(cr, uid, [res_id], values, context=context)
  195. File "/opt/openerp/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
  196. return super(view, self).write(cr, uid, ids, vals, context)
  197. File "/opt/openerp/server/openerp/osv/orm.py", line 4201, in write
  198. self._validate(cr, user, ids, context)
  199. File "/opt/openerp/server/openerp/osv/orm.py", line 1544, in _validate
  200. raise except_orm('ValidateError', '\n'.join(error_msgs))
  201. except_orm: ('ValidateError', u'Ha ocurrido un error mientras se validaban los campo(s) arch: Invalid XML for View Architecture!')
  202. 2014-09-19 13:45:01,086 2744 ERROR qrhcin openerp.netsvc: ValidateError
  203. Ha ocurrido un error mientras se validaban los campo(s) arch: Invalid XML for View Architecture!
  204. Traceback (most recent call last):
  205. File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
  206. result = ExportService.getService(service_name).dispatch(method, params)
  207. File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch
  208. res = fn(db, uid, *params)
  209. File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw
  210. return self.execute(db, uid, obj, method, *args, **kw or {})
  211. File "/opt/openerp/server/openerp/osv/osv.py", line 144, in wrapper
  212. raise except_osv(inst.name, inst.value)
  213. except_osv: ('ValidateError', u'Ha ocurrido un error mientras se validaban los campo(s) arch: Invalid XML for View Architecture!')
  214. 2014-09-19 13:45:01,148 2744 INFO qrhcin werkzeug: 192.168.0.15 - - [19/Sep/2014 13:45:01] "POST /web/dataset/call_button HTTP/1.1" 200 -
  215. 2014-09-19 13:45:01,253 2744 INFO ? werkzeug: 192.168.0.15 - - [19/Sep/2014 13:45:01] "GET /web/static/src/img/warning.png HTTP/1.1" 200 -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement