Skip to content

Commit

Permalink
[IMP] hr_timesheet_purchase_order: create PO automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
dessanhemrayev committed Jul 19, 2023
1 parent d575ada commit 0645995
Show file tree
Hide file tree
Showing 6 changed files with 959 additions and 1 deletion.
1 change: 1 addition & 0 deletions hr_timesheet_purchase_order/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"demo": [],
"data": [
"data/ir_actions_server.xml",
"data/hr_timesheet_cron.xml",
"views/hr_employee_view.xml",
"views/hr_timesheet_sheet_view.xml",
"views/purchase_order_view.xml",
Expand Down
11 changes: 11 additions & 0 deletions hr_timesheet_purchase_order/data/hr_timesheet_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="ir_cron_auto_generate_po" model="ir.cron">
<field name="name">HR Timesheet : Auto generate Purchase Order</field>
<field name="model_id" ref="hr.model_hr_employee" />
<field name="state">code</field>
<field name="code">model._cron_generate_auto_po()</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
</record>
</odoo>
Loading

0 comments on commit 0645995

Please sign in to comment.