Browse Source

add name and phone of referent on purchase order

pull/114/head
odoo 7 years ago
committed by Rémy Taymans
parent
commit
bb5cf144d2
  1. 1
      beesdoo_purchase/__openerp__.py
  2. 14
      beesdoo_purchase/report/report_purchaseorder.xml

1
beesdoo_purchase/__openerp__.py

@ -25,6 +25,7 @@
'data': [ 'data': [
'views/purchase_order.xml', 'views/purchase_order.xml',
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'report/report_purchaseorder.xml',
], ],
# only loaded in demonstration mode # only loaded in demonstration mode
'demo': [], '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.partner_id.phone" t-field="o.partner_id.phone"/>
</div>
</div>
</template>
</data>
</odoo>
Loading…
Cancel
Save