Skip to content

Commit

Permalink
Merge pull request #44 from lepistone/lrs-ui
Browse files Browse the repository at this point in the history
source: add buttons and always show budget
  • Loading branch information
yvaucher committed Nov 19, 2014
2 parents 2593905 + 5c64096 commit 7f7fc0c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion framework_agreement_sourcing/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
""",
'website': 'http://www.camptocamp.com',
'data': [
'view/requisition_view.xml',
'wizard/logistic_requisition_source_create_po_view.xml',
'view/requisition_view.xml',
'security/ir.model.access.csv'
],
'demo': [],
Expand Down
21 changes: 11 additions & 10 deletions framework_agreement_sourcing/view/requisition_view.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="add_supplier_and_agreement_on_source_line" model="ir.ui.view">
<field name="name">add supplier and agrement on source line</field>
<record model="ir.ui.view" id="view_logistic_requisition_source_form">
<field name="name">view_logistic_requisition_source_form</field>
<field name="model">logistic.requisition.source</field>
<field name="inherit_id" ref="logistic_requisition.view_logistic_requisition_source_form"/>
<field name="arch" type="xml">
<xpath expr="//header/group" position="after">
<group attrs="{'invisible': [('procurement_method', '!=', 'fw_agreement')]}">
<button name="%(action_view_create_agr_po_from_source)d"
states="assigned"
string="Create Agreement Purchase Order"
class="oe_highlight"
type="action"/>
</group>
</xpath>
<field name="unit_cost"
position="before">
<field name="framework_agreement_id"
Expand All @@ -24,14 +33,6 @@
position="attributes">
<attribute name="attrs">{'invisible': [('procurement_method', '=', 'fw_agreement')]}</attribute>
</field>
<field name="unit_cost"
position="attributes">
<attribute name="attrs">{'invisible': [('procurement_method', '=', 'fw_agreement')]}</attribute>
</field>
<field name="total_cost"
position="attributes">
<attribute name="attrs">{'invisible': [('procurement_method', '=', 'fw_agreement')]}</attribute>
</field>
<field name="price_is"
position="attributes">
<attribute name="attrs">{'invisible': [('procurement_method', '=', 'fw_agreement')]}</attribute>
Expand Down
9 changes: 9 additions & 0 deletions logistic_requisition/view/logistic_requisition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,15 @@
<field name="model">logistic.requisition.source</field>
<field name="arch" type="xml">
<form string="Logistics Requisition Sourcing Lines" create="false">
<header>
<group attrs="{'invisible': [('procurement_method', '!=', 'procurement')]}">
<button name="%(action_view_create_requisition_from_source)d"
states="assigned"
string="Create Call for Bids"
class="oe_highlight"
type="action"/>
</group>
</header>
<sheet>
<div class="oe_title">
<h1>
Expand Down

0 comments on commit 7f7fc0c

Please sign in to comment.