forked from OCA/purchase-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a5dc36
commit e56639d
Showing
13 changed files
with
1,033 additions
and
737 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018-2019 ForgeFlow, S.L. | ||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> | ||
<odoo> | ||
|
||
<!-- Request-related subtypes for messaging / Chatter --> | ||
<record id="mt_request_to_approve" model="mail.message.subtype"> | ||
<field name="name">Purchase Request to be approved</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True"/> | ||
<field name="description">Purchase Request to be approved</field> | ||
</record> | ||
|
||
<record id="mt_request_approved" model="mail.message.subtype"> | ||
<field name="name">Purchase Request approved</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True"/> | ||
<field name="description">Purchase Request approved</field> | ||
</record> | ||
|
||
<record id="mt_request_rejected" model="mail.message.subtype"> | ||
<field name="name">Purchase Request rejected</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True"/> | ||
<field name="description">Purchase Request rejected</field> | ||
</record> | ||
|
||
<record id="mt_request_done" model="mail.message.subtype"> | ||
<field name="name">Purchase Request done</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True"/> | ||
<field name="description">Purchase Request is done</field> | ||
</record> | ||
|
||
<!-- Request-related subtypes for messaging / Chatter --> | ||
<record id="mt_request_to_approve" model="mail.message.subtype"> | ||
<field name="name">Purchase Request to be approved</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True" /> | ||
<field name="description">Purchase Request to be approved</field> | ||
</record> | ||
<record id="mt_request_approved" model="mail.message.subtype"> | ||
<field name="name">Purchase Request approved</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True" /> | ||
<field name="description">Purchase Request approved</field> | ||
</record> | ||
<record id="mt_request_rejected" model="mail.message.subtype"> | ||
<field name="name">Purchase Request rejected</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True" /> | ||
<field name="description">Purchase Request rejected</field> | ||
</record> | ||
<record id="mt_request_done" model="mail.message.subtype"> | ||
<field name="name">Purchase Request done</field> | ||
<field name="res_model">purchase.request</field> | ||
<field name="default" eval="True" /> | ||
<field name="description">Purchase Request is done</field> | ||
</record> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018-2019 ForgeFlow, S.L. | ||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> | ||
<odoo noupdate="1"> | ||
|
||
<record id="seq_purchase_request" model="ir.sequence"> | ||
<field name="name">Purchase Request</field> | ||
<field name="code">purchase.request</field> | ||
<field name="prefix">PR</field> | ||
<field name="padding">5</field> | ||
</record> | ||
|
||
<record id="seq_purchase_request" model="ir.sequence"> | ||
<field name="name">Purchase Request</field> | ||
<field name="code">purchase.request</field> | ||
<field name="prefix">PR</field> | ||
<field name="padding">5</field> | ||
</record> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018-2019 ForgeFlow, S.L. | ||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> | ||
<odoo noupdate="1"> | ||
|
||
<record id="base.user_demo" model="res.users"> | ||
<field eval="[(4, ref('group_purchase_request_user'))]" | ||
name="groups_id"/> | ||
</record> | ||
|
||
<record id="base.user_admin" model="res.users"> | ||
<field eval="[(4, ref('group_purchase_request_manager'))]" | ||
name="groups_id"/> | ||
</record> | ||
|
||
<record id="base.user_demo" model="res.users"> | ||
<field eval="[(4, ref('group_purchase_request_user'))]" name="groups_id" /> | ||
</record> | ||
<record id="base.user_admin" model="res.users"> | ||
<field eval="[(4, ref('group_purchase_request_manager'))]" name="groups_id" /> | ||
</record> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,119 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018-2019 ForgeFlow, S.L. | ||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) --> | ||
<odoo> | ||
|
||
<template id="report_purchase_request"> | ||
<t t-call="web.html_container"> | ||
<t t-foreach="docs" t-as="o"> | ||
<t t-call="web.external_layout"> | ||
<div class="page"> | ||
<div class="oe_structure"/> | ||
|
||
<h2>Purchase Request <span t-field="o.name"/></h2> | ||
|
||
<div class="row mt32 mb32"> | ||
<div class="col-xs-3"> | ||
<strong>Request Reference:</strong><br/> | ||
<span t-field="o.name"/> | ||
<template id="report_purchase_request"> | ||
<t t-call="web.html_container"> | ||
<t t-foreach="docs" t-as="o"> | ||
<t t-call="web.external_layout"> | ||
<div class="page"> | ||
<div class="oe_structure" /> | ||
<h2>Purchase Request <span t-field="o.name" /></h2> | ||
<div class="row mt32 mb32"> | ||
<div class="col-xs-3"> | ||
<strong>Request Reference:</strong> | ||
<br /> | ||
<span t-field="o.name" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Creation Date:</strong> | ||
<br /> | ||
<span t-field="o.date_start" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Source:</strong> | ||
<br /> | ||
<span t-field="o.origin" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Description:</strong> | ||
<br /> | ||
<span t-field="o.description" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Requested by:</strong> | ||
<br /> | ||
<span t-field="o.requested_by" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Assigned to:</strong> | ||
<br /> | ||
<span t-field="o.assigned_to" /> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Picking Type:</strong> | ||
<br /> | ||
<span t-field="o.picking_type_id" /> | ||
</div> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Creation Date:</strong><br/> | ||
<span t-field="o.date_start"/> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Source:</strong><br/> | ||
<span t-field="o.origin"/> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Description:</strong><br/> | ||
<span t-field="o.description"/> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Requested by:</strong><br/> | ||
<span t-field="o.requested_by"/> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Assigned to:</strong><br/> | ||
<span t-field="o.assigned_to"/> | ||
</div> | ||
<div class="col-xs-3"> | ||
<strong>Picking Type:</strong><br/> | ||
<span t-field="o.picking_type_id"/> | ||
</div> | ||
</div> | ||
|
||
<t t-if="o.line_ids"> | ||
<h3>Products</h3> | ||
<table class="table table-condensed"> | ||
<thead> | ||
<tr> | ||
<th><strong>Description</strong></th> | ||
<th groups="analytic.group_analytic_accounting"> | ||
<strong>Analytic Account</strong> | ||
</th> | ||
<th class="text-right"><strong>Qty</strong></th> | ||
<th class="text-center" groups="uom.group_uom"> | ||
<strong>Product UoM</strong> | ||
</th> | ||
<th><strong>Estimated Cost</strong></th> | ||
<th class="text-right"><strong>Requested Date</strong></th> | ||
<th><strong>Specifications</strong></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr t-foreach="o.line_ids" t-as="line_ids"> | ||
<td> | ||
<span t-field="line_ids.name"/> | ||
</td> | ||
<td groups="analytic.group_analytic_accounting"> | ||
<span t-field="line_ids.analytic_account_id"/> | ||
</td> | ||
<td class="text-right"> | ||
<span t-field="line_ids.product_qty"/> | ||
</td> | ||
<t> | ||
<td class="text-center" groups="uom.group_uom"> | ||
<span t-field="line_ids.product_uom_id.category_id.name"/> | ||
<t t-if="o.line_ids"> | ||
<h3>Products</h3> | ||
<table class="table table-condensed"> | ||
<thead> | ||
<tr> | ||
<th> | ||
<strong>Description</strong> | ||
</th> | ||
<th groups="analytic.group_analytic_accounting"> | ||
<strong>Analytic Account</strong> | ||
</th> | ||
<th class="text-right"> | ||
<strong>Qty</strong> | ||
</th> | ||
<th class="text-center" groups="uom.group_uom"> | ||
<strong>Product UoM</strong> | ||
</th> | ||
<th> | ||
<strong>Estimated Cost</strong> | ||
</th> | ||
<th class="text-right"> | ||
<strong>Requested Date</strong> | ||
</th> | ||
<th> | ||
<strong>Specifications</strong> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr t-foreach="o.line_ids" t-as="line_ids"> | ||
<td> | ||
<span t-field="line_ids.name" /> | ||
</td> | ||
</t> | ||
<td> | ||
<span t-field="line_ids.estimated_cost"/> | ||
</td> | ||
<td class="text-right"> | ||
<span t-field="line_ids.date_required"/> | ||
</td> | ||
<td> | ||
<span t-field="line_ids.specifications"/> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</t> | ||
<div class="oe_structure"/> | ||
</div> | ||
<td groups="analytic.group_analytic_accounting"> | ||
<span | ||
t-field="line_ids.analytic_account_id" | ||
/> | ||
</td> | ||
<td class="text-right"> | ||
<span t-field="line_ids.product_qty" /> | ||
</td> | ||
<t> | ||
<td | ||
class="text-center" | ||
groups="uom.group_uom" | ||
> | ||
<span | ||
t-field="line_ids.product_uom_id.category_id.name" | ||
/> | ||
</td> | ||
</t> | ||
<td> | ||
<span t-field="line_ids.estimated_cost" /> | ||
</td> | ||
<td class="text-right"> | ||
<span t-field="line_ids.date_required" /> | ||
</td> | ||
<td> | ||
<span t-field="line_ids.specifications" /> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</t> | ||
<div class="oe_structure" /> | ||
</div> | ||
</t> | ||
</t> | ||
</t> | ||
</t> | ||
</template> | ||
|
||
</template> | ||
</odoo> |
Oops, something went wrong.