You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.6 KiB

  1. <odoo>
  2. <record model="ir.actions.act_window" id="action_welcome">
  3. <field name="name">Shift Type</field>
  4. <field name="res_model">beesdoo.shift.welcome</field>
  5. <field name="view_mode">form</field>
  6. <field name="target">inline</field>
  7. </record>
  8. <menuitem name="Shift Welcome" id="menu_root" action="action_welcome"
  9. groups="beesdoo_shift.group_shift_attendance" />
  10. <record model="ir.ui.view" id="shift_welcome_screen_view_form">
  11. <field name="name">Shift Welcome Screen</field>
  12. <field name="model">beesdoo.shift.welcome</field>
  13. <field name="arch" type="xml">
  14. <form>
  15. <sheet>
  16. <field name="_barcode_scanned" widget="barcode_handler" />
  17. <separator string="Cooperator" />
  18. <h1>
  19. <field name="partner_id" />
  20. </h1>
  21. <group>
  22. <field name="can_shop" />
  23. </group>
  24. <field name="message" readonly="1"/>
  25. </sheet>
  26. </form>
  27. </field>
  28. </record>
  29. <template id="welcome_message" name="Welcome Message">
  30. <img t-attf-src="data:image/*;base64,{{rec.partner_id.image}}" />
  31. <t t-if="rec.can_shop">
  32. <h1><font style="background-color: rgb(0, 255, 0); font-size: 24px;">Can shop</font></h1>
  33. </t>
  34. <t t-if="not rec.can_shop">
  35. <h1><font style="background-color: rgb(255, 0, 0); font-size: 24px;">Cannot shop</font></h1>
  36. </t>
  37. </template>
  38. </odoo>