Skip to content

Commit

Permalink
[IMP] improved wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Sep 21, 2015
1 parent 81bc3a7 commit 30870b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class AnalyticResourcePlanLineMakePurchaseRequest(orm.TransientModel):
_description = "Resource plan make purchase request"

_columns = {
'origin': fields.char('Origin', size=32, required=True),
'description': fields.text('Description'),
'item_ids': fields.one2many(
'analytic.resource.plan.line.make.purchase.request.item',
'wiz_id', 'Items'),
Expand Down Expand Up @@ -66,6 +68,8 @@ def _prepare_purchase_request(self, cr, uid, make_purchase_request,
company_id, context=None):
data = {
'company_id': company_id,
'origin': make_purchase_request.origin,
'description': make_purchase_request.description,
}
return data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Create Purchase Request">
<group>
<field name="origin"/>
<field name="description"/>
</group>
<newline/>
<group>
<field name="item_ids" nolabel="1">
<tree string="Details" create="false" editable="bottom">
Expand Down

0 comments on commit 30870b9

Please sign in to comment.