Merge lp:~openerp-commiter/openobject-training/6.1-migration-kbh into lp:~openerp-commiter/openobject-training/6.1

Proposed by Khushboo Bhatt(openerp)
Status: Merged
Merged at revision: 2712
Proposed branch: lp:~openerp-commiter/openobject-training/6.1-migration-kbh
Merge into: lp:~openerp-commiter/openobject-training/6.1
Diff against target: 95 lines (+55/-2)
2 files modified
training/training.py (+3/-1)
training/training_view.xml (+52/-1)
To merge this branch: bzr merge lp:~openerp-commiter/openobject-training/6.1-migration-kbh
Reviewer Review Type Date Requested Status
OpenERP Committers Pending
Review via email: mp+114564@code.launchpad.net

Description of the change

Hello,

  == training ==

 I have added kanban view for training stackholder request.And small fix for Purchase order.

Thank you,
KBH.

To post a comment you must log in.
2710. By Khushboo Bhatt(openerp)

[MERGE]merge with project branch

2711. By Khushboo Bhatt(openerp)

[FIX]

2712. By Khushboo Bhatt(openerp)

[FIX]

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'training/training.py'
2--- training/training.py 2012-07-11 13:06:53 +0000
3+++ training/training.py 2012-07-12 06:16:19 +0000
4@@ -3860,6 +3860,7 @@
5 'training.participation.stakeholder': (_store_get_requests, None, 25),
6 'training.participation.stakeholder.purchase': (_store_purchase_get_requests, None, 25),
7 }),
8+ 'color': fields.integer('Color Index'),
9 }
10
11 _defaults = {
12@@ -3962,6 +3963,8 @@
13 def _trigger_purchase_order_signal(self, cr, uid, ids, signal_name, context=None):
14 wf_service = netsvc.LocalService('workflow')
15 for this in self.browse(cr, uid, ids, context=context):
16+ if not this.purchase_order_id:
17+ continue
18 wf_service.trg_validate(uid, 'purchase.order', this.purchase_order_id.id, signal_name, cr)
19 return True
20
21@@ -4773,7 +4776,6 @@
22 def product_id_change(self, cr, uid, ids, pricelist_id, product_id, qty, uom_id,
23 partner_id, date_order=False, fiscal_position_id=False, date_planned=False,
24 name=False, price_unit=False, notes=False, attachment_ids=None, context=None):
25- print pricelist_id, partner_id
26 r = super(purchase_order_line, self).product_id_change(cr, uid, ids, pricelist_id, product_id, qty, uom_id,
27 partner_id, date_order, fiscal_position_id, date_planned,
28 name, price_unit, notes, context=context)
29
30=== modified file 'training/training_view.xml'
31--- training/training_view.xml 2012-07-11 13:06:53 +0000
32+++ training/training_view.xml 2012-07-12 06:16:19 +0000
33@@ -2377,11 +2377,62 @@
34 </field>
35 </record>
36
37+ <record model="ir.ui.view" id="view_training_stakeholder_request_kanban">
38+ <field name="name">training.participation.stakeholder.request.kanban</field>
39+ <field name="model">training.participation.stakeholder.request</field>
40+ <field name="type">kanban</field>
41+ <field name="arch" type="xml">
42+ <kanban default_group_by="state">
43+ <field name="reference"/>
44+ <field name="color"/>
45+ <field name="session_id"/>
46+ <field name="job_id"/>
47+ <field name="payment_mode_id"/>
48+ <field name="price"/>
49+ <templates>
50+ <t t-name="kanban-box">
51+ <t t-set="color" t-value="kanban_color(record.color.raw_value || record.reference.raw_value)"/>
52+ <div t-att-class="color + (record.color.raw_value == 1 ? ' oe_kanban_color_alert' : '')">
53+ <div class="oe_kanban_box oe_kanban_color_border">
54+ <div class="oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle">
55+ <table class="oe_kanban_table">
56+ <tr>
57+ <td class="oe_kanban_title" align="left" valign="middle">
58+ <field name="reference"/>
59+ </td>
60+ </tr>
61+ </table>
62+ </div>
63+ <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger">
64+ <div class="oe_kanban_description">
65+ <table>
66+ <tr><td>Session: <field name="session_id"/></td></tr>
67+ <tr><td>Contact: <field name="job_id"/></td></tr>
68+ <tr><td>Payment Mode: <field name="payment_mode_id"/></td></tr>
69+ <tr><td>Remuneration: <field name="price"/></td></tr>
70+ </table>
71+ </div>
72+ <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
73+ <div class="oe_kanban_left">
74+ <a string="Edit" icon="gtk-edit" type="edit"/>
75+ <a string="Change Color" icon="color-picker" type="color" name="color"/>
76+ </div>
77+ <br class="oe_kanban_clear"/>
78+ </div>
79+ </div>
80+ </div>
81+ </div>
82+ </t>
83+ </templates>
84+ </kanban>
85+ </field>
86+ </record>
87+
88 <record model="ir.actions.act_window" id="participation_stakeholder_request_act">
89 <field name="name">Stakeholder Requests</field>
90 <field name="res_model">training.participation.stakeholder.request</field>
91 <field name="view_type">form</field>
92- <field name="view_mode">tree,form</field>
93+ <field name="view_mode">tree,form,kanban</field>
94 <field name="search_view_id" ref="view_participation_stakeholder_request_search"/>
95 </record>
96

Subscribers

People subscribed via source and target branches