We would like to automatize lunch as currently all orders are manually ordered and validated, and a cash move has to be manually created each time you want to credit the wallet of some user. In this commit we add a new widget that comes with the kanban view and will allow to take orders in a friendly manner. We also add a lunch.supplier model and an integration with the hr module in order to filter what products you can order depending on your working location, this also allows you to configure an automatic ordering via email. TaskID: 1856876
18 lines
691 B
XML
18 lines
691 B
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="ir_cron_lunch" model="ir.cron">
|
|
<field name="name">Lunch: automatic email send</field>
|
|
<field name="model_id" ref="model_lunch_supplier"/>
|
|
<field name="state">code</field>
|
|
<field name="code">model._auto_email_send()</field>
|
|
<field name="active" eval="True"/>
|
|
<field name="user_id" ref="base.user_root"/>
|
|
<field name="interval_number">10</field>
|
|
<field name="interval_type">minutes</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False"/>
|
|
</record>
|
|
</data>
|
|
</odoo>
|