Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] maintenance_ux: create demo data
closes #121 Related: ingadhoc/product#518 Signed-off-by: Bruno Zanotti <bz@adhoc.com.ar>
- Loading branch information
1 parent
a3d9141
commit b102c1e
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="rating_maintenance_1" model="rating.rating"> | ||
<field name="access_token">MAINTENANCE_1</field> | ||
<field name="res_model_id" ref="maintenance.model_maintenance_request"/> | ||
<field name="rated_partner_id" ref="base.partner_demo"/> | ||
<field name="partner_id" ref="base.partner_admin"/> | ||
<field name="create_date" eval="datetime.now()"/> | ||
<field name="res_id" ref="maintenance.m_request_3"/> | ||
</record> | ||
<function model="maintenance.request" name="rating_apply" | ||
eval="([ref('maintenance.m_request_3')], 5, 'MAINTENANCE_1', None, 'Good Job')"/> | ||
|
||
<record id="rating_maintenance_2" model="rating.rating"> | ||
<field name="access_token">MAINTENANCE_2</field> | ||
<field name="res_model_id" ref="maintenance.model_maintenance_request"/> | ||
<field name="rated_partner_id" ref="base.partner_demo"/> | ||
<field name="partner_id" ref="base.partner_admin"/> | ||
<field name="create_date" eval="datetime.now()"/> | ||
<field name="res_id" ref="maintenance.m_request_6"/> | ||
</record> | ||
<function model="maintenance.request" name="rating_apply" | ||
eval="([ref('maintenance.m_request_6')], 2, 'MAINTENANCE_2', None, 'Not as good as expected')"/> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters