Merge lp:~openerp-dev/openobject-addons/trunk-module_rename-avo into lp:openobject-addons

Proposed by Amit Vora(OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-module_rename-avo
Merge into: lp:openobject-addons
Diff against target: 190 lines (+18/-17)
12 files modified
project/res_config.py (+2/-2)
project/res_config_view.xml (+2/-2)
sale/res_config.py (+1/-1)
sale/sale.py (+2/-2)
sale_service/__init__.py (+1/-1)
sale_service/__openerp__.py (+2/-2)
sale_service/models/__init__.py (+1/-0)
sale_service/models/sale_service.py (+1/-1)
sale_service/views/sale_service_view.xml (+1/-1)
sale_stock/res_config.py (+3/-3)
sale_stock/res_config_view.xml (+1/-1)
stock/procurement.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-module_rename-avo
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+219155@code.launchpad.net

Description of the change

Hello,

I have rename project_mrp to sale_service

Thanks
avo

To post a comment you must log in.

Unmerged revisions

9438. By Amit Vora(OpenERP)

[IMP] rename .pot file

9437. By Amit Vora(OpenERP)

[IMP] rename project_mrp module to sale_service

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project/res_config.py'
2--- project/res_config.py 2014-04-09 11:17:38 +0000
3+++ project/res_config.py 2014-05-12 08:55:23 +0000
4@@ -27,11 +27,11 @@
5 _inherit = 'res.config.settings'
6
7 _columns = {
8- 'module_project_mrp': fields.boolean('Generate tasks from sale orders',
9+ 'module_sale_service': fields.boolean('Generate tasks from sale orders',
10 help='This feature automatically creates project tasks from service products in sale orders. '
11 'More precisely, tasks are created for procurement lines with product of type \'Service\', '
12 'procurement method \'Make to Order\', and supply method \'Manufacture\'.\n'
13- '-This installs the module project_mrp.'),
14+ '-This installs the module sale_service.'),
15 'module_pad': fields.boolean("Use integrated collaborative note pads on task",
16 help='Lets the company customize which Pad installation should be used to link to new pads '
17 '(for example: http://ietherpad.com/).\n'
18
19=== modified file 'project/res_config_view.xml'
20--- project/res_config_view.xml 2014-04-09 11:17:38 +0000
21+++ project/res_config_view.xml 2014-05-12 08:55:23 +0000
22@@ -33,8 +33,8 @@
23 <label for="module_project_timesheet"/>
24 </div>
25 <div>
26- <field name="module_project_mrp" class="oe_inline"/>
27- <label for="module_project_mrp"/>
28+ <field name="module_sale_service" class="oe_inline"/>
29+ <label for="module_sale_service"/>
30 </div>
31 <div>
32 <field name="module_pad" class="oe_inline"/>
33
34=== modified file 'sale/res_config.py'
35--- sale/res_config.py 2014-01-29 08:32:09 +0000
36+++ sale/res_config.py 2014-05-12 08:55:23 +0000
37@@ -152,7 +152,7 @@
38 def onchange_task_work(self, cr, uid, ids, task_work, context=None):
39 return {'value': {
40 'module_project_timesheet': task_work,
41- 'module_project_mrp': task_work,
42+ 'module_sale_service': task_work,
43 }}
44
45 def onchange_timesheet(self, cr, uid, ids, timesheet, context=None):
46
47=== modified file 'sale/sale.py'
48--- sale/sale.py 2014-05-07 18:29:17 +0000
49+++ sale/sale.py 2014-05-12 08:55:23 +0000
50@@ -656,7 +656,7 @@
51
52 def procurement_needed(self, cr, uid, ids, context=None):
53 #when sale is installed only, there is no need to create procurements, that's only
54- #further installed modules (project_mrp, sale_stock) that will change this.
55+ #further installed modules (sale_service, sale_stock) that will change this.
56 sale_line_obj = self.pool.get('sale.order.line')
57 res = []
58 for order in self.browse(cr, uid, ids, context=context):
59@@ -809,7 +809,7 @@
60
61 def need_procurement(self, cr, uid, ids, context=None):
62 #when sale is installed only, there is no need to create procurements, that's only
63- #further installed modules (project_mrp, sale_stock) that will change this.
64+ #further installed modules (sale_service, sale_stock) that will change this.
65 return False
66
67 def _amount_line(self, cr, uid, ids, field_name, arg, context=None):
68
69=== renamed directory 'project_mrp' => 'sale_service'
70=== modified file 'sale_service/__init__.py'
71--- project_mrp/__init__.py 2013-07-10 15:00:42 +0000
72+++ sale_service/__init__.py 2014-05-12 08:55:23 +0000
73@@ -19,6 +19,6 @@
74 #
75 ##############################################################################
76
77-import project_mrp
78+import models
79
80 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
81
82=== modified file 'sale_service/__openerp__.py'
83--- project_mrp/__openerp__.py 2014-05-02 13:03:52 +0000
84+++ sale_service/__openerp__.py 2014-05-12 08:55:23 +0000
85@@ -50,8 +50,8 @@
86 'website': 'http://www.openerp.com',
87 'images': ['images/product.jpeg', 'images/task_from_SO.jpeg'],
88 'depends': ['project', 'procurement', 'sale', 'procurement_jit'],
89- 'data': ['project_mrp_view.xml'], #'process/project_mrp_process.xml'
90- 'demo': ['project_mrp_demo.xml'],
91+ 'data': ['views/sale_service_view.xml'],
92+ 'demo': ['demo/sale_service_demo.xml'],
93 'test': ['test/project_task_procurement.yml'],
94 'installable': True,
95 'auto_install': False,
96
97=== added directory 'sale_service/demo'
98=== renamed file 'project_mrp/project_mrp_demo.xml' => 'sale_service/demo/sale_service_demo.xml'
99=== renamed file 'project_mrp/i18n/project_mrp.pot' => 'sale_service/i18n/sale_service.pot'
100=== added directory 'sale_service/models'
101=== added file 'sale_service/models/__init__.py'
102--- sale_service/models/__init__.py 1970-01-01 00:00:00 +0000
103+++ sale_service/models/__init__.py 2014-05-12 08:55:23 +0000
104@@ -0,0 +1,1 @@
105+import sale_service
106\ No newline at end of file
107
108=== renamed file 'project_mrp/project_mrp.py' => 'sale_service/models/sale_service.py'
109--- project_mrp/project_mrp.py 2013-12-20 10:57:22 +0000
110+++ sale_service/models/sale_service.py 2014-05-12 08:55:23 +0000
111@@ -151,7 +151,7 @@
112 _inherit = 'sale.order.line'
113
114 def need_procurement(self, cr, uid, ids, context=None):
115- #when sale is installed alone, there is no need to create procurements, but with project_mrp
116+ #when sale is installed alone, there is no need to create procurements, but with sale_service
117 #we must create a procurement for each service that has the auto_create_task boolean set to True.
118 for line in self.browse(cr, uid, ids, context=context):
119 if line.product_id and line.product_id.type == 'service' and line.product_id.auto_create_task:
120
121=== added directory 'sale_service/views'
122=== renamed file 'project_mrp/project_mrp_view.xml' => 'sale_service/views/sale_service_view.xml'
123--- project_mrp/project_mrp_view.xml 2013-12-20 10:33:33 +0000
124+++ sale_service/views/sale_service_view.xml 2014-05-12 08:55:23 +0000
125@@ -34,7 +34,7 @@
126 </field>
127 </field>
128 </record>
129- <record id="view_project_mrp_inherit_form2" model="ir.ui.view">
130+ <record id="view_sale_service_inherit_form2" model="ir.ui.view">
131 <field name="name">project.mrp.form.view.inherit</field>
132 <field name="model">project.task</field>
133 <field name="inherit_id" ref="project.view_task_form2"/>
134
135=== modified file 'sale_stock/res_config.py'
136--- sale_stock/res_config.py 2014-05-08 14:39:40 +0000
137+++ sale_stock/res_config.py 2014-05-12 08:55:23 +0000
138@@ -35,7 +35,7 @@
139 help='Lets you transfer the entries under tasks defined for Project Management to '
140 'the Timesheet line entries for particular date and particular user with the effect of creating, editing and deleting either ways '
141 'and to automatically creates project tasks from procurement lines.\n'
142- '-This installs the modules project_timesheet and project_mrp.'),
143+ '-This installs the modules project_timesheet and sale_service.'),
144 'default_order_policy': fields.selection(
145 [('manual', 'Invoice based on sales orders'), ('picking', 'Invoice based on deliveries')],
146 'The default invoicing method is', default_model='sale.order',
147@@ -50,7 +50,7 @@
148 implied_group='sale.group_mrp_properties',
149 help="Allows you to tag sales order lines with properties."),
150 'module_project_timesheet': fields.boolean("Project Timesheet"),
151- 'module_project_mrp': fields.boolean("Project MRP"),
152+ 'module_sale_service': fields.boolean("Sale Service"),
153 'group_route_so_lines': fields.boolean('Choose MTO, drop shipping,... on sales order lines',
154 implied_group='sale_stock.group_route_so_lines',
155 help="Allows you to choose a delivery route on sales order lines"),
156@@ -63,7 +63,7 @@
157 def default_get(self, cr, uid, fields, context=None):
158 res = super(sale_configuration, self).default_get(cr, uid, fields, context)
159 # task_work, time_unit depend on other fields
160- res['task_work'] = res.get('module_project_mrp') and res.get('module_project_timesheet')
161+ res['task_work'] = res.get('module_sale_service') and res.get('module_project_timesheet')
162 return res
163
164 def get_default_sale_config(self, cr, uid, ids, context=None):
165
166=== modified file 'sale_stock/res_config_view.xml'
167--- sale_stock/res_config_view.xml 2014-04-14 09:47:43 +0000
168+++ sale_stock/res_config_view.xml 2014-05-12 08:55:23 +0000
169@@ -38,7 +38,7 @@
170 </xpath>
171 <group name='default_options' position="after">
172 <field name="module_project_timesheet" invisible="1"/>
173- <field name="module_project_mrp" invisible="1"/>
174+ <field name="module_sale_service" invisible="1"/>
175 </group>
176 <div name='warehouse_features' position='inside'>
177 <div name='default_picking_policy' attrs="{'invisible':[('group_invoice_deli_orders','=',False)]}">
178
179=== modified file 'stock/procurement.py'
180--- stock/procurement.py 2014-05-08 11:03:57 +0000
181+++ stock/procurement.py 2014-05-12 08:55:23 +0000
182@@ -78,7 +78,7 @@
183 class procurement_order(osv.osv):
184 _inherit = "procurement.order"
185 _columns = {
186- 'location_id': fields.many2one('stock.location', 'Procurement Location'), # not required because task may create procurements that aren't linked to a location with project_mrp
187+ 'location_id': fields.many2one('stock.location', 'Procurement Location'), # not required because task may create procurements that aren't linked to a location with sale_service
188 'partner_dest_id': fields.many2one('res.partner', 'Customer Address', help="In case of dropshipping, we need to know the destination address more precisely"),
189 'move_ids': fields.one2many('stock.move', 'procurement_id', 'Moves', help="Moves created by the procurement"),
190 'move_dest_id': fields.many2one('stock.move', 'Destination Move', help="Move which caused (created) the procurement"),

Subscribers

People subscribed via source and target branches

to all changes: