Merge lp:~toolpart/openobject-addons/project_messages_members into lp:openobject-addons/6.0

Proposed by ViktorNagy
Status: Needs review
Proposed branch: lp:~toolpart/openobject-addons/project_messages_members
Merge into: lp:openobject-addons/6.0
Diff against target: 56 lines (+10/-10)
2 files modified
mrp/mrp.py (+1/-1)
project_messages/project_messages_view.xml (+9/-9)
To merge this branch: bzr merge lp:~toolpart/openobject-addons/project_messages_members
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+77476@code.launchpad.net

Description of the change

Extended the domain restriction to allow project members the posting of project messages.

To post a comment you must log in.

Unmerged revisions

4854. By ViktorNagy

Extended the domain filter to allow project members to post messages too. Previously only the project admin could post a message.

4853. By ViktorNagy

A small fix to allow for bom less production (provided fully by other addons)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/mrp.py'
2--- mrp/mrp.py 2011-04-04 11:25:26 +0000
3+++ mrp/mrp.py 2011-09-29 08:19:25 +0000
4@@ -832,7 +832,7 @@
5 routing_loc = None
6 pick_type = 'internal'
7 address_id = False
8- if production.bom_id.routing_id and production.bom_id.routing_id.location_id:
9+ if production.bom_id and production.bom_id.routing_id and production.bom_id.routing_id.location_id:
10 routing_loc = production.bom_id.routing_id.location_id
11 if routing_loc.usage <> 'internal':
12 pick_type = 'out'
13
14=== modified file 'project_messages/project_messages_view.xml'
15--- project_messages/project_messages_view.xml 2011-01-14 00:11:01 +0000
16+++ project_messages/project_messages_view.xml 2011-09-29 08:19:25 +0000
17@@ -1,7 +1,7 @@
18 <?xml version="1.0" encoding="utf-8"?>
19 <openerp>
20 <data>
21- <record id="view_phase_project_form1" model="ir.ui.view">
22+ <record id="view_phase_project_form1" model="ir.ui.view">
23 <field name="name">phase.project.form1</field>
24 <field name="model">project.project</field>
25 <field name="type">form</field>
26@@ -16,14 +16,14 @@
27 <field name="to_id" attrs="{'readonly':[('from_id', '!=', uid)]}"/>
28 </tree>
29 <form>
30- <group attrs="{'readonly':[('from_id', '!=', uid)]}">
31+ <group attrs="{'readonly':[('from_id', '!=', uid)]}">
32 <field name="from_id"/>
33- <field name="to_id"/>
34- <newline/>
35- <separator colspan="4" string="Message"/>
36- <field nolabel="1" name="message" colspan="4"/>
37- </group>
38- </form>
39+ <field name="to_id"/>
40+ <newline/>
41+ <separator colspan="4" string="Message"/>
42+ <field nolabel="1" name="message" colspan="4"/>
43+ </group>
44+ </form>
45 </field>
46 </page>
47 </xpath>
48@@ -37,7 +37,7 @@
49 <field name="arch" type="xml">
50 <form string="Messages">
51 <group attrs="{'readonly':[('from_id', '!=', uid)]}">
52- <field name="project_id" select="1" domain="[('user_id','=',uid)]"/>
53+ <field name="project_id" select="1" domain="['|', ('user_id','=',uid), ('members', '=', uid)]"/>
54 <newline/>
55 <field name="from_id" select="1"/>
56 <field name="to_id" select="1"/>