orden_servicio.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <act_window
  5. id="action_open_account_invoice_servicio"
  6. name="Servicios"
  7. res_model="account.invoice"
  8. view_type="form"
  9. view_mode="tree,form"
  10. domain="[('servicio_invoice_id', '=', active_id)]"/>
  11. <act_window
  12. id="action_open_order_sale_servicio"
  13. name="Pedidos de ventas"
  14. res_model="sale.order"
  15. view_type="form"
  16. view_mode="tree,form"
  17. domain="[('servicio_sale_id', '=', active_id)]"/>
  18. <record id="tree_orden_servicio_mejorado" model="ir.ui.view">
  19. <field name="name">orden.servicio.tree</field>
  20. <field name="model">orden.servicio</field>
  21. <field name="arch" type="xml">
  22. <tree string="Orden de servicio">
  23. <field name="name"/>
  24. <field name="partner_id"/>
  25. <field name="celular_partner"/>
  26. <field name="name_obra"/>
  27. <!-- <field name="sale_order_id"/> -->
  28. <field name="order_date"/>
  29. <field name="planned_start_date"/>
  30. <field name="planned_end_date"/>
  31. <field name="total_obra" sum="totobra"/>
  32. <field name="state"/>
  33. </tree>
  34. </field>
  35. </record>
  36. <!-- search view -->
  37. <record id="search_orden_servicio_mejorado" model="ir.ui.view">
  38. <field name="name">orden.servicio.search</field>
  39. <field name="model">orden.servicio</field>
  40. <field name="arch" type="xml">
  41. <search string="Orden de servicio">
  42. <field name="name"/>
  43. <field name="partner_id"/>
  44. <field name="name_obra"/>
  45. <field name="sale_order_id"/>
  46. <filter string="Mis tareas" domain="[('user_id','=',uid)]"/>
  47. <filter string="Realizada" domain="[('state','=','done')]"/>
  48. <filter string="En progreso" domain="[('state','=','in_progress')]"/>
  49. <filter string="Pendiente" domain="[('state','=','draft')]"/>
  50. <filter string="Cancelado" domain="[('state','=','canceled')]"/>
  51. <separator/>
  52. <filter string="Creado Hoy" domain="[('order_date', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('order_date', '&lt;=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
  53. <filter string="Creado mes actual" domain="[('order_date','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('order_date','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
  54. <filter string="Creado semana anterior" domain="[('order_date', '&gt;=', ((context_today()+relativedelta(weeks=-2, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('order_date', '&lt;=', ((context_today()+relativedelta(weeks=-1, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
  55. <filter string="Creado esta semana" domain="[('order_date', '&gt;=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('order_date', '&lt;=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
  56. <filter string="Orden a realizar mes actual" domain="[('planned_start_date','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), ('planned_start_date','&gt;=',time.strftime('%%Y-%%m-01'))]"/>
  57. <filter string="Orden a realizar mes pasado" domain="[('planned_start_date','&gt;=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),('planned_start_date','&lt;',time.strftime('%%Y-%%m-01'))]"/>
  58. <filter string="Orden a realizar semana anterior" domain="[('planned_start_date', '&gt;=', ((context_today()+relativedelta(weeks=-2, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('planned_start_date', '&lt;=', ((context_today()+relativedelta(weeks=-1, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
  59. <filter string="Orden a realizar esta semana" domain="[('planned_start_date', '&gt;=', ((context_today()+relativedelta(weeks=-1, days=1, weekday=0)).strftime('%%Y-%%m-%%d'))),('planned_start_date', '&lt;=', ((context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')))]"/>
  60. <filter string="Orden a realizar hoy" domain="[('planned_start_date', '&gt;=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('planned_start_date', '&lt;=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
  61. <filter string="Orden a realizar ayer" domain="[('planned_start_date','&lt;=', (datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d')),('planned_start_date','&gt;=',(datetime.date.today()-relativedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
  62. <group expand="0" string="Agrupar por...">
  63. <filter string="Por dia" context="{'group_by':'date_invoice:day'}"/>
  64. <filter string="Por mes" context="{'group_by':'date_invoice:month'}"/>
  65. <filter string="Por dia a realizar" context="{'group_by':'planned_start_date:day'}"/>
  66. <filter string="Por mes a realizar" context="{'group_by':'planned_start_date:month'}"/>
  67. <filter string="Usuario" domain="[]" context="{'group_by':'user_id'}" />
  68. <filter string="Cliente" domain="[]" context="{'group_by':'partner_id'}" />
  69. <filter string="Estado" name="State" context="{'group_by':'state'}"/>
  70. </group>
  71. </search>
  72. </field>
  73. </record>
  74. <!-- form view -->
  75. <record id="form_orden_servicio_mejorado" model="ir.ui.view">
  76. <field name="name">orden.servicio.form</field>
  77. <field name="model">orden.servicio</field>
  78. <field name="type">form</field>
  79. <field name="arch" type="xml">
  80. <form string="Orden de servicio">
  81. <header>
  82. <button name="button_in_progress" type="object" states="draft,done" string="Iniciar" class="oe_highlight" groups="base.group_user"/>
  83. <button name="button_in_progress_back" type="object" states="in_progress" string="Atrás" class="oe_highlight" groups="base.group_user"/>
  84. <button name="button_done" type="object" states="in_progress" string="Hecho" class="oe_highlight" groups="base.group_user"/>
  85. <button name="button_done_back" type="object" states="done" string="En progreso" class="oe_highlight" groups="base.group_user"/>
  86. <button name="button_cancel" type="object" states="draft,in_progress" string="Cancelar" class="oe_highlight" groups="base.group_user"/>
  87. <field name="state" widget="statusbar" statusbar_visible="draft,in_progress,done" statusbar_colors='{"done":"red", "canceled":"red","in_progress":"blue"}'/>
  88. </header>
  89. <sheet>
  90. <div class="oe_title">
  91. <h1>
  92. <label string="Orden de servicio "/>
  93. <!-- <field name="name" class="oe_inline"/> -->
  94. </h1>
  95. </div>
  96. <div class="oe_right oe_button_box">
  97. <button
  98. class="oe_inline oe_stat_button"
  99. type="action"
  100. name="%(action_open_order_sale_servicio)d"
  101. icon="fa-strikethrough">
  102. <field name="sale_count" string="Pedidos" widget="statinfo" />
  103. </button>
  104. <button
  105. class="oe_inline oe_stat_button"
  106. type="action"
  107. name="%(action_open_account_invoice_servicio)d"
  108. icon="fa-money">
  109. <field name="invoice_count" string="Facturas" widget="statinfo" />
  110. </button>
  111. </div>
  112. <group>
  113. <group>
  114. <field name="name"/>
  115. <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
  116. <field name="celular_partner"/>
  117. <field name="name_obra"/>
  118. <field name="name_local"/>
  119. <field name="contacto_obra"/>
  120. <field name="distancia_obra"/>
  121. </group>
  122. <group name="Dates">
  123. <field name="order_date"/>
  124. <field name="responsable"/>
  125. <field name="planned_start_date"/>
  126. <field name="planned_end_date"/>
  127. <field name="hrs_total"/>
  128. <field name="telefono_partner"/>
  129. <field name="celular_obra"/>
  130. <!-- <field name="sale_order_id"/> -->
  131. </group>
  132. </group>
  133. <group>
  134. <field name="dir_obra"/>
  135. </group>
  136. <group>
  137. <field name="sale_ids" widget="many2many" options="{'no_create': False}">
  138. <tree editable="top">
  139. <field name="name" string="Orden venta Nº" />
  140. <field name="date_order" string="Fecha del pedido" />
  141. <field name="amount_total" string="Total pedido" sum="Total" />
  142. <field name="state" string="Estado" />
  143. </tree>
  144. </field>
  145. </group>
  146. <group>
  147. <!-- <label for="horarios_dia" string="Horarios por día"/> -->
  148. <field name="horarios_dia" mode="tree" context="{'default_servicio_id': active_id}">
  149. <tree editable="bottom">
  150. <field name="dia_semana"/>
  151. <field name="hora_inicio" widget="odoo_timepicker"/>
  152. <field name="hora_fin" widget="odoo_timepicker"/>
  153. </tree>
  154. </field>
  155. </group>
  156. <group>
  157. <field name="ubicacion_google_link" widget="url" target="_blank"/>
  158. <field name="croquis"/>
  159. <field name="zona_obra"/>
  160. </group>
  161. <notebook>
  162. <page>
  163. <span style="font-weight:bold;">Fotos de la Obra</span>
  164. <field name="fotos_obras" widget="many2many_binary"/>
  165. </page>
  166. </notebook>
  167. <notebook>
  168. <page>
  169. <span style="font-weight:bold;">Productos a utilizar</span>
  170. <field name="product_ids" attrs="{'readonly': [('state','=','done')]}"/>
  171. </page>
  172. </notebook>
  173. <notebook>
  174. <page>
  175. <span style="font-weight:bold;">Insumos para colocación a utilizar</span>
  176. <field name="insumos_ids" attrs="{'readonly': [('state','=','done')]}"/>
  177. </page>
  178. </notebook>
  179. <notebook>
  180. <page>
  181. <span style="font-weight:bold;">Gastos de logística</span>
  182. <field name="logistica_ids" attrs="{'readonly': [('state','=','done')]}"/>
  183. </page>
  184. </notebook>
  185. <notebook>
  186. <page>
  187. <span style="font-weight:bold;">Devolución de productos e insumos</span>
  188. <field name="devolucion_ids" attrs="{'readonly': [('state','=','done')]}"/>
  189. </page>
  190. </notebook>
  191. <notebook>
  192. <page>
  193. <span style="font-weight:bold;">Recepción en fábrica</span>
  194. <field name="recepcion_ids" attrs="{'readonly': [('state','=','done')]}"/>
  195. </page>
  196. </notebook>
  197. <notebook>
  198. <page>
  199. <span style="font-weight:bold;">Facturas relacionadas a esta Orden de Servicio</span>
  200. <field name="invoice_ids" widget="many2many" options="{'no_create': False}">
  201. <tree editable="top">
  202. <field name="number" string="Número de factura" />
  203. <field name="date_invoice" string="Fecha de factura" />
  204. <field name="residual" string="Saldo" sum="Saldo" />
  205. <field name="amount_total" string="Total factura" sum="Total" />
  206. <field name="state" string="Estado" />
  207. </tree>
  208. </field>
  209. </page>
  210. </notebook>
  211. <group>
  212. <field name="total_producto"/>
  213. <field name="total_insumo"/>
  214. <field name="total_logistica"/>
  215. <field name="total_devolucion"/>
  216. <field name="total_fabrica"/>
  217. <field name="total_obra"/>
  218. <field name="obs_obra"/>
  219. </group>
  220. </sheet>
  221. <div class="oe_chatter">
  222. <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
  223. <field name="message_ids" widget="mail_thread"/>
  224. </div>
  225. </form>
  226. <script type="text/javascript" src="/orden_servicio/static/src/js/custom_script.js"/>
  227. </field>
  228. </record>
  229. <!-- calendar view -->
  230. <record id="calendar_orden_servicio" model="ir.ui.view">
  231. <field name="name">orden.servicio.calendar</field>
  232. <field name="model">orden.servicio</field>
  233. <field name="arch" type="xml">
  234. <calendar color="user_id" date_start="planned_start_date" string="Repair">
  235. <field name="name"/>
  236. </calendar>
  237. </field>
  238. </record>
  239. <!-- gantt -->
  240. <record id="gantt_orden_servicio" model="ir.ui.view">
  241. <field name="name">orden.servicio.gatt</field>
  242. <field name="model">orden.servicio</field>
  243. <field name="arch" type="xml">
  244. <gantt date_start="planned_start_date" date_stop="planned_end_date" progress="progress" string="Tasks" default_group_by="project_id">
  245. </gantt>
  246. </field>
  247. </record>
  248. <!-- action -->
  249. <record id="action_orden_servicio" model="ir.actions.act_window">
  250. <field name="name">Orden de servicio</field>
  251. <field name="type">ir.actions.act_window</field>
  252. <field name="res_model">orden.servicio</field>
  253. <field name="view_type">form</field>
  254. <field name="view_mode">tree,form,calendar,gantt</field>
  255. <field name="search_view_id" ref="search_orden_servicio_mejorado"/>
  256. </record>
  257. <record id="tree_orden_servicio_producto" model="ir.ui.view">
  258. <field name="name">orden.servicio.producto.tree</field>
  259. <field name="model">servicio.producto</field>
  260. <field name="arch" type="xml">
  261. <tree string="Productos a utilizar" editable="bottom">
  262. <field name="product_id"/>
  263. <field name="categ_id"/>
  264. <field name="quantity"/>
  265. <field name="price_unit"/>
  266. <field name="subtotal" sum="total"/>
  267. </tree>
  268. </field>
  269. </record>
  270. <record id="search_orden_servicio_producto" model="ir.ui.view">
  271. <field name="name">orden.servicio.producto.search</field>
  272. <field name="model">servicio.producto</field>
  273. <field name="arch" type="xml">
  274. <search string="Productos a utilizar">
  275. <field name="product_id"/>
  276. <field name="categ_id"/>
  277. <field name="quantity"/>
  278. <field name="price_unit"/>
  279. <field name="subtotal"/>
  280. </search>
  281. </field>
  282. </record>
  283. <record id="form_orden_servicio_producto" model="ir.ui.view">
  284. <field name="name">orden.servicio.producto.form</field>
  285. <field name="model">servicio.producto</field>
  286. <field name="arch" type="xml">
  287. <form string="Productos a utilizar">
  288. <sheet>
  289. <group>
  290. <field name="product_id"/>
  291. <field name="categ_id"/>
  292. <field name="quantity"/>
  293. <field name="price_unit"/>
  294. <field name="subtotal" sum="total"/>
  295. </group>
  296. </sheet>
  297. </form>
  298. </field>
  299. </record>
  300. <record id="action_orden_servicio_producto" model="ir.actions.act_window">
  301. <field name="name">Productos a utilizar</field>
  302. <field name="type">ir.actions.act_window</field>
  303. <field name="res_model">servicio.producto</field>
  304. <field name="view_type">form</field>
  305. <field name="view_mode">tree,form</field>
  306. <field name="search_view_id" ref="search_orden_servicio_producto"/>
  307. </record>
  308. <record id="tree_orden_servicio_insumo" model="ir.ui.view">
  309. <field name="name">orden.servicio.insumo.tree</field>
  310. <field name="model">servicio.insumo</field>
  311. <field name="arch" type="xml">
  312. <tree string="Insumos para colocación" editable="bottom">
  313. <field name="product_id"/>
  314. <field name="descripcion"/>
  315. <field name="quantity"/>
  316. <field name="price_unit"/>
  317. <field name="subtotal" sum="total"/>
  318. </tree>
  319. </field>
  320. </record>
  321. <record id="search_orden_servicio_insumo" model="ir.ui.view">
  322. <field name="name">orden.servicio.insumo.search</field>
  323. <field name="model">servicio.insumo</field>
  324. <field name="arch" type="xml">
  325. <search string="Insumos para colocación">
  326. <field name="product_id"/>
  327. <field name="descripcion"/>
  328. <field name="quantity"/>
  329. <field name="price_unit"/>
  330. <field name="subtotal"/>
  331. </search>
  332. </field>
  333. </record>
  334. <record id="form_orden_servicio_insumo" model="ir.ui.view">
  335. <field name="name">orden.servicio.insumo.form</field>
  336. <field name="model">servicio.insumo</field>
  337. <field name="arch" type="xml">
  338. <form string="Insumos para colocación">
  339. <sheet>
  340. <group>
  341. <field name="product_id"/>
  342. <field name="descripcion"/>
  343. <field name="quantity"/>
  344. <field name="price_unit"/>
  345. <field name="subtotal" sum="total"/>
  346. </group>
  347. </sheet>
  348. </form>
  349. </field>
  350. </record>
  351. <record id="action_orden_servicio_insumo" model="ir.actions.act_window">
  352. <field name="name">Insumos para colocación</field>
  353. <field name="type">ir.actions.act_window</field>
  354. <field name="res_model">servicio.insumo</field>
  355. <field name="view_type">form</field>
  356. <field name="view_mode">tree,form</field>
  357. <field name="search_view_id" ref="search_orden_servicio_insumo"/>
  358. </record>
  359. <record id="tree_orden_servicio_logistica" model="ir.ui.view">
  360. <field name="name">orden.servicio.logistica.tree</field>
  361. <field name="model">servicio.logistica</field>
  362. <field name="arch" type="xml">
  363. <tree string="Gastos de logística" editable="bottom">
  364. <field name="fecha"/>
  365. <field name="product_id"/>
  366. <field name="descripcion"/>
  367. <field name="quantity"/>
  368. <field name="price_unit"/>
  369. <field name="subtotal" sum="total"/>
  370. </tree>
  371. </field>
  372. </record>
  373. <record id="search_orden_servicio_logistica" model="ir.ui.view">
  374. <field name="name">orden.servicio.logistica.search</field>
  375. <field name="model">servicio.logistica</field>
  376. <field name="arch" type="xml">
  377. <search string="Gastos de logística">
  378. <field name="product_id"/>
  379. <field name="descripcion"/>
  380. <field name="quantity"/>
  381. <field name="price_unit"/>
  382. <field name="subtotal"/>
  383. </search>
  384. </field>
  385. </record>
  386. <record id="form_orden_servicio_logistica" model="ir.ui.view">
  387. <field name="name">orden.servicio.logistica.form</field>
  388. <field name="model">servicio.logistica</field>
  389. <field name="arch" type="xml">
  390. <form string="Gastos de logística">
  391. <sheet>
  392. <group>
  393. <field name="fecha"/>
  394. <field name="product_id"/>
  395. <field name="descripcion"/>
  396. <field name="quantity"/>
  397. <field name="price_unit"/>
  398. <field name="subtotal" sum="total"/>
  399. </group>
  400. </sheet>
  401. </form>
  402. </field>
  403. </record>
  404. <record id="action_orden_servicio_logistica" model="ir.actions.act_window">
  405. <field name="name">Gastos de logística</field>
  406. <field name="type">ir.actions.act_window</field>
  407. <field name="res_model">servicio.logistica</field>
  408. <field name="view_type">form</field>
  409. <field name="view_mode">tree,form</field>
  410. <field name="search_view_id" ref="search_orden_servicio_logistica"/>
  411. </record>
  412. <record id="tree_orden_devolucion_insumo" model="ir.ui.view">
  413. <field name="name">orden.devolucion.insumo.tree</field>
  414. <field name="model">devolucion.insumo</field>
  415. <field name="arch" type="xml">
  416. <tree string="Devolución de productos e insumos" editable="bottom">
  417. <field name="product_id"/>
  418. <field name="descripcion"/>
  419. <field name="quantity"/>
  420. <field name="price_unit"/>
  421. <field name="subtotal" sum="total"/>
  422. </tree>
  423. </field>
  424. </record>
  425. <record id="search_orden_devolucion_insumo" model="ir.ui.view">
  426. <field name="name">orden.devolucion.insumo.search</field>
  427. <field name="model">devolucion.insumo</field>
  428. <field name="arch" type="xml">
  429. <search string="Devolución de productos e insumos">
  430. <field name="product_id"/>
  431. <field name="descripcion"/>
  432. <field name="quantity"/>
  433. <field name="price_unit"/>
  434. <field name="subtotal"/>
  435. </search>
  436. </field>
  437. </record>
  438. <record id="form_orden_devolucion_insumo" model="ir.ui.view">
  439. <field name="name">orden.devolucion.insumo.form</field>
  440. <field name="model">devolucion.insumo</field>
  441. <field name="arch" type="xml">
  442. <form string="Devolución de productos e insumos">
  443. <sheet>
  444. <group>
  445. <field name="product_id"/>
  446. <field name="descripcion"/>
  447. <field name="quantity"/>
  448. <field name="price_unit"/>
  449. <field name="subtotal" sum="total"/>
  450. </group>
  451. </sheet>
  452. </form>
  453. </field>
  454. </record>
  455. <record id="action_orden_devolucion_insumo" model="ir.actions.act_window">
  456. <field name="name">Devolución de productos e insumos</field>
  457. <field name="type">ir.actions.act_window</field>
  458. <field name="res_model">devolucion.insumo</field>
  459. <field name="view_type">form</field>
  460. <field name="view_mode">tree,form</field>
  461. <field name="search_view_id" ref="search_orden_devolucion_insumo"/>
  462. </record>
  463. <record id="tree_orden_recepcion_fabrica" model="ir.ui.view">
  464. <field name="name">orden.recepcion.fabrica.tree</field>
  465. <field name="model">recepcion.fabrica</field>
  466. <field name="arch" type="xml">
  467. <tree string="Recepción en fábrica" editable="bottom">
  468. <field name="fecha"/>
  469. <field name="product_id"/>
  470. <field name="descripcion"/>
  471. <field name="quantity"/>
  472. <field name="price_unit"/>
  473. <field name="subtotal"/>
  474. <field name="employee_id"/>
  475. </tree>
  476. </field>
  477. </record>
  478. <record id="search_orden_recepcion_fabrica" model="ir.ui.view">
  479. <field name="name">orden.recepcion.fabrica.search</field>
  480. <field name="model">recepcion.fabrica</field>
  481. <field name="arch" type="xml">
  482. <search string="Recepción en fábrica">
  483. <field name="product_id"/>
  484. <field name="descripcion"/>
  485. <field name="quantity"/>
  486. <field name="price_unit"/>
  487. <field name="subtotal"/>
  488. <field name="employee_id"/>
  489. </search>
  490. </field>
  491. </record>
  492. <record id="form_orden_recepcion_fabrica" model="ir.ui.view">
  493. <field name="name">orden.recepcion.fabrica.form</field>
  494. <field name="model">recepcion.fabrica</field>
  495. <field name="arch" type="xml">
  496. <form string="Recepción en fábrica">
  497. <sheet>
  498. <group>
  499. <field name="fecha"/>
  500. <field name="product_id"/>
  501. <field name="descripcion"/>
  502. <field name="quantity"/>
  503. <field name="price_unit"/>
  504. <field name="subtotal"/>
  505. <field name="employee_id"/>
  506. </group>
  507. </sheet>
  508. </form>
  509. </field>
  510. </record>
  511. <record id="action_orden_recepcion_fabrica" model="ir.actions.act_window">
  512. <field name="name">Recepción en fábrica</field>
  513. <field name="type">ir.actions.act_window</field>
  514. <field name="res_model">recepcion.fabrica</field>
  515. <field name="view_type">form</field>
  516. <field name="view_mode">tree,form</field>
  517. <field name="search_view_id" ref="search_orden_recepcion_fabrica"/>
  518. </record>
  519. <menuitem id="orden_servicio_id" parent="base.menu_sales" action="action_orden_servicio" name="Orden de servicio" sequence="20"/>
  520. </data>
  521. </openerp>