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
parent
commit
615958ac48
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      beesdoo_purchase/__openerp__.py
  2. 14
      beesdoo_purchase/report/report_purchaseorder.xml

1
beesdoo_purchase/__openerp__.py

@ -25,6 +25,7 @@
'data': [
'views/purchase_order.xml',
'security/ir.model.access.csv',
'report/report_purchaseorder.xml',
],
# only loaded in demonstration mode
'demo': [],

14
beesdoo_purchase/report/report_purchaseorder.xml

@ -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>
Loading…
Cancel
Save