Browse Source
Merge pull request #30 from beescoop/9.0-po-add-partner
Add name and phone of referent on purchase order
pull/31/head
Houssine BAKKALI
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
15 additions and
0 deletions
-
beesdoo_purchase/__openerp__.py
-
beesdoo_purchase/report/report_purchaseorder.xml
|
|
@ -25,6 +25,7 @@ |
|
|
|
'data': [ |
|
|
|
'views/purchase_order.xml', |
|
|
|
'security/ir.model.access.csv', |
|
|
|
'report/report_purchaseorder.xml', |
|
|
|
], |
|
|
|
# only loaded in demonstration mode |
|
|
|
'demo': [], |
|
|
@ -0,0 +1,14 @@ |
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
<odoo> |
|
|
|
<data> |
|
|
|
<template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document" name="beesdoo purchaseorder"> |
|
|
|
<div t-if="o.date_order" position="after"> |
|
|
|
<div t-if="o.create_uid.name" class="col-xs-3"> |
|
|
|
<strong>Your Referent:</strong> |
|
|
|
<p t-field="o.create_uid.name"/> |
|
|
|
<p t-if="o.create_uid.phone" t-field="o.create_uid.phone"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</data> |
|
|
|
</odoo> |