subcontracting_portal_templates.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="portal_my_home_productions" name="Productions" customize_show="True" inherit_id="portal.portal_my_home" priority="20">
  4. <xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
  5. <t t-call="portal.portal_docs_entry">
  6. <t t-set="title">Productions</t>
  7. <t t-set="url" t-value="'/my/productions'"/>
  8. <t t-set="placeholder_count" t-value="'production_count'"/>
  9. </t>
  10. </xpath>
  11. </template>
  12. <template id="portal_my_home_menu_production" name="Portal layout : production menu entries" inherit_id="portal.portal_breadcrumbs" priority="25">
  13. <xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
  14. <li t-if="page_name == 'production' or production" t-attf-class="breadcrumb-item #{'active' if not pickings else ''}">
  15. <t>Productions</t>
  16. </li>
  17. </xpath>
  18. </template>
  19. <template id="portal_my_productions" name="My Productions">
  20. <t t-call="portal.portal_layout">
  21. <t t-set="breadcrumbs_searchbar" t-value="True"/>
  22. <t t-call="portal.portal_searchbar">
  23. <t t-set="title">Productions</t>
  24. </t>
  25. <t t-if="not pickings">
  26. <p>There are currently no productions for your account.</p>
  27. </t>
  28. <t t-if="pickings" t-call="portal.portal_table">
  29. <thead>
  30. <tr class="active">
  31. <th>Order</th>
  32. <th class="text-end">Source Document</th>
  33. <th class="text-end">Scheduled Date</th>
  34. <th class="text-end">Deadline Date</th>
  35. <th class="text-end">State</th>
  36. </tr>
  37. </thead>
  38. <t t-foreach="pickings" t-as="picking">
  39. <tr>
  40. <td><a t-attf-href="/my/productions/#{picking.id}?{{ keep_query() }}"><span t-field="picking.name"/></a></td>
  41. <td class="text-end"><span t-field="picking.origin"/></td>
  42. <td class="text-end"><span t-field="picking.scheduled_date" t-options='{"widget": "date"}'/></td>
  43. <td class="text-end"><span t-field="picking.date_deadline" t-options='{"widget": "date"}'/></td>
  44. <td class="text-end"><span t-field="picking.state"/></td>
  45. </tr>
  46. </t>
  47. </t>
  48. </t>
  49. </template>
  50. <template id="subcontracting_portal" name="Subcontracting View in Portal">
  51. <t t-call="portal.frontend_layout">
  52. <t t-set="no_footer" t-value="true"/>
  53. <t t-call="mrp_subcontracting.subcontracting"/>
  54. </t>
  55. </template>
  56. <template id="subcontracting" name="Subcontracting Portal View">
  57. <iframe width="100%" height="100%" frameborder="0" t-attf-src="/my/productions/{{ picking_id }}/subcontracting_portal"/>
  58. </template>
  59. <template id="subcontracting_portal_embed" name="Subcontracting Portal">
  60. <t t-call="web.layout">
  61. <t t-set="head_subcontracting_portal">
  62. <script type="text/javascript">
  63. odoo.__session_info__ = <t t-out="json.dumps(session_info)"/>;
  64. </script>
  65. <base target="_parent"/>
  66. <t t-call-assets="web.assets_common" t-js="false"/>
  67. <t t-call-assets="web.assets_backend" t-js="false"/>
  68. <t t-call-assets="web.assets_common" t-css="false"/>
  69. <t t-call-assets="mrp_subcontracting.webclient" t-css="false"/>
  70. <t t-call="web.conditional_assets_tests"/>
  71. </t>
  72. <t t-set="head" t-value="head_subcontracting_portal + (head or '')"/>
  73. <t t-set="body_classname" t-value="'o_web_client o_subcontracting_portal'"/>
  74. </t>
  75. </template>
  76. </odoo>