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
=== modified file 'project/res_config.py'
--- project/res_config.py 2014-04-09 11:17:38 +0000
+++ project/res_config.py 2014-05-12 08:55:23 +0000
@@ -27,11 +27,11 @@
27 _inherit = 'res.config.settings'27 _inherit = 'res.config.settings'
2828
29 _columns = {29 _columns = {
30 'module_project_mrp': fields.boolean('Generate tasks from sale orders',30 'module_sale_service': fields.boolean('Generate tasks from sale orders',
31 help='This feature automatically creates project tasks from service products in sale orders. '31 help='This feature automatically creates project tasks from service products in sale orders. '
32 'More precisely, tasks are created for procurement lines with product of type \'Service\', '32 'More precisely, tasks are created for procurement lines with product of type \'Service\', '
33 'procurement method \'Make to Order\', and supply method \'Manufacture\'.\n'33 'procurement method \'Make to Order\', and supply method \'Manufacture\'.\n'
34 '-This installs the module project_mrp.'),34 '-This installs the module sale_service.'),
35 'module_pad': fields.boolean("Use integrated collaborative note pads on task",35 'module_pad': fields.boolean("Use integrated collaborative note pads on task",
36 help='Lets the company customize which Pad installation should be used to link to new pads '36 help='Lets the company customize which Pad installation should be used to link to new pads '
37 '(for example: http://ietherpad.com/).\n'37 '(for example: http://ietherpad.com/).\n'
3838
=== modified file 'project/res_config_view.xml'
--- project/res_config_view.xml 2014-04-09 11:17:38 +0000
+++ project/res_config_view.xml 2014-05-12 08:55:23 +0000
@@ -33,8 +33,8 @@
33 <label for="module_project_timesheet"/>33 <label for="module_project_timesheet"/>
34 </div>34 </div>
35 <div>35 <div>
36 <field name="module_project_mrp" class="oe_inline"/>36 <field name="module_sale_service" class="oe_inline"/>
37 <label for="module_project_mrp"/>37 <label for="module_sale_service"/>
38 </div>38 </div>
39 <div>39 <div>
40 <field name="module_pad" class="oe_inline"/>40 <field name="module_pad" class="oe_inline"/>
4141
=== modified file 'sale/res_config.py'
--- sale/res_config.py 2014-01-29 08:32:09 +0000
+++ sale/res_config.py 2014-05-12 08:55:23 +0000
@@ -152,7 +152,7 @@
152 def onchange_task_work(self, cr, uid, ids, task_work, context=None):152 def onchange_task_work(self, cr, uid, ids, task_work, context=None):
153 return {'value': {153 return {'value': {
154 'module_project_timesheet': task_work,154 'module_project_timesheet': task_work,
155 'module_project_mrp': task_work,155 'module_sale_service': task_work,
156 }}156 }}
157157
158 def onchange_timesheet(self, cr, uid, ids, timesheet, context=None):158 def onchange_timesheet(self, cr, uid, ids, timesheet, context=None):
159159
=== modified file 'sale/sale.py'
--- sale/sale.py 2014-05-07 18:29:17 +0000
+++ sale/sale.py 2014-05-12 08:55:23 +0000
@@ -656,7 +656,7 @@
656656
657 def procurement_needed(self, cr, uid, ids, context=None):657 def procurement_needed(self, cr, uid, ids, context=None):
658 #when sale is installed only, there is no need to create procurements, that's only658 #when sale is installed only, there is no need to create procurements, that's only
659 #further installed modules (project_mrp, sale_stock) that will change this.659 #further installed modules (sale_service, sale_stock) that will change this.
660 sale_line_obj = self.pool.get('sale.order.line')660 sale_line_obj = self.pool.get('sale.order.line')
661 res = []661 res = []
662 for order in self.browse(cr, uid, ids, context=context):662 for order in self.browse(cr, uid, ids, context=context):
@@ -809,7 +809,7 @@
809809
810 def need_procurement(self, cr, uid, ids, context=None):810 def need_procurement(self, cr, uid, ids, context=None):
811 #when sale is installed only, there is no need to create procurements, that's only811 #when sale is installed only, there is no need to create procurements, that's only
812 #further installed modules (project_mrp, sale_stock) that will change this.812 #further installed modules (sale_service, sale_stock) that will change this.
813 return False813 return False
814814
815 def _amount_line(self, cr, uid, ids, field_name, arg, context=None):815 def _amount_line(self, cr, uid, ids, field_name, arg, context=None):
816816
=== renamed directory 'project_mrp' => 'sale_service'
=== modified file 'sale_service/__init__.py'
--- project_mrp/__init__.py 2013-07-10 15:00:42 +0000
+++ sale_service/__init__.py 2014-05-12 08:55:23 +0000
@@ -19,6 +19,6 @@
19#19#
20##############################################################################20##############################################################################
2121
22import project_mrp22import models
2323
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2525
=== modified file 'sale_service/__openerp__.py'
--- project_mrp/__openerp__.py 2014-05-02 13:03:52 +0000
+++ sale_service/__openerp__.py 2014-05-12 08:55:23 +0000
@@ -50,8 +50,8 @@
50 'website': 'http://www.openerp.com',50 'website': 'http://www.openerp.com',
51 'images': ['images/product.jpeg', 'images/task_from_SO.jpeg'],51 'images': ['images/product.jpeg', 'images/task_from_SO.jpeg'],
52 'depends': ['project', 'procurement', 'sale', 'procurement_jit'],52 'depends': ['project', 'procurement', 'sale', 'procurement_jit'],
53 'data': ['project_mrp_view.xml'], #'process/project_mrp_process.xml'53 'data': ['views/sale_service_view.xml'],
54 'demo': ['project_mrp_demo.xml'],54 'demo': ['demo/sale_service_demo.xml'],
55 'test': ['test/project_task_procurement.yml'],55 'test': ['test/project_task_procurement.yml'],
56 'installable': True,56 'installable': True,
57 'auto_install': False,57 'auto_install': False,
5858
=== added directory 'sale_service/demo'
=== renamed file 'project_mrp/project_mrp_demo.xml' => 'sale_service/demo/sale_service_demo.xml'
=== renamed file 'project_mrp/i18n/project_mrp.pot' => 'sale_service/i18n/sale_service.pot'
=== added directory 'sale_service/models'
=== added file 'sale_service/models/__init__.py'
--- sale_service/models/__init__.py 1970-01-01 00:00:00 +0000
+++ sale_service/models/__init__.py 2014-05-12 08:55:23 +0000
@@ -0,0 +1,1 @@
1import sale_service
0\ No newline at end of file2\ No newline at end of file
13
=== renamed file 'project_mrp/project_mrp.py' => 'sale_service/models/sale_service.py'
--- project_mrp/project_mrp.py 2013-12-20 10:57:22 +0000
+++ sale_service/models/sale_service.py 2014-05-12 08:55:23 +0000
@@ -151,7 +151,7 @@
151 _inherit = 'sale.order.line'151 _inherit = 'sale.order.line'
152152
153 def need_procurement(self, cr, uid, ids, context=None):153 def need_procurement(self, cr, uid, ids, context=None):
154 #when sale is installed alone, there is no need to create procurements, but with project_mrp154 #when sale is installed alone, there is no need to create procurements, but with sale_service
155 #we must create a procurement for each service that has the auto_create_task boolean set to True.155 #we must create a procurement for each service that has the auto_create_task boolean set to True.
156 for line in self.browse(cr, uid, ids, context=context):156 for line in self.browse(cr, uid, ids, context=context):
157 if line.product_id and line.product_id.type == 'service' and line.product_id.auto_create_task:157 if line.product_id and line.product_id.type == 'service' and line.product_id.auto_create_task:
158158
=== added directory 'sale_service/views'
=== renamed file 'project_mrp/project_mrp_view.xml' => 'sale_service/views/sale_service_view.xml'
--- project_mrp/project_mrp_view.xml 2013-12-20 10:33:33 +0000
+++ sale_service/views/sale_service_view.xml 2014-05-12 08:55:23 +0000
@@ -34,7 +34,7 @@
34 </field>34 </field>
35 </field>35 </field>
36 </record>36 </record>
37 <record id="view_project_mrp_inherit_form2" model="ir.ui.view">37 <record id="view_sale_service_inherit_form2" model="ir.ui.view">
38 <field name="name">project.mrp.form.view.inherit</field>38 <field name="name">project.mrp.form.view.inherit</field>
39 <field name="model">project.task</field>39 <field name="model">project.task</field>
40 <field name="inherit_id" ref="project.view_task_form2"/>40 <field name="inherit_id" ref="project.view_task_form2"/>
4141
=== modified file 'sale_stock/res_config.py'
--- sale_stock/res_config.py 2014-05-08 14:39:40 +0000
+++ sale_stock/res_config.py 2014-05-12 08:55:23 +0000
@@ -35,7 +35,7 @@
35 help='Lets you transfer the entries under tasks defined for Project Management to '35 help='Lets you transfer the entries under tasks defined for Project Management to '
36 'the Timesheet line entries for particular date and particular user with the effect of creating, editing and deleting either ways '36 'the Timesheet line entries for particular date and particular user with the effect of creating, editing and deleting either ways '
37 'and to automatically creates project tasks from procurement lines.\n'37 'and to automatically creates project tasks from procurement lines.\n'
38 '-This installs the modules project_timesheet and project_mrp.'),38 '-This installs the modules project_timesheet and sale_service.'),
39 'default_order_policy': fields.selection(39 'default_order_policy': fields.selection(
40 [('manual', 'Invoice based on sales orders'), ('picking', 'Invoice based on deliveries')],40 [('manual', 'Invoice based on sales orders'), ('picking', 'Invoice based on deliveries')],
41 'The default invoicing method is', default_model='sale.order',41 'The default invoicing method is', default_model='sale.order',
@@ -50,7 +50,7 @@
50 implied_group='sale.group_mrp_properties',50 implied_group='sale.group_mrp_properties',
51 help="Allows you to tag sales order lines with properties."),51 help="Allows you to tag sales order lines with properties."),
52 'module_project_timesheet': fields.boolean("Project Timesheet"),52 'module_project_timesheet': fields.boolean("Project Timesheet"),
53 'module_project_mrp': fields.boolean("Project MRP"),53 'module_sale_service': fields.boolean("Sale Service"),
54 'group_route_so_lines': fields.boolean('Choose MTO, drop shipping,... on sales order lines',54 'group_route_so_lines': fields.boolean('Choose MTO, drop shipping,... on sales order lines',
55 implied_group='sale_stock.group_route_so_lines',55 implied_group='sale_stock.group_route_so_lines',
56 help="Allows you to choose a delivery route on sales order lines"),56 help="Allows you to choose a delivery route on sales order lines"),
@@ -63,7 +63,7 @@
63 def default_get(self, cr, uid, fields, context=None):63 def default_get(self, cr, uid, fields, context=None):
64 res = super(sale_configuration, self).default_get(cr, uid, fields, context)64 res = super(sale_configuration, self).default_get(cr, uid, fields, context)
65 # task_work, time_unit depend on other fields65 # task_work, time_unit depend on other fields
66 res['task_work'] = res.get('module_project_mrp') and res.get('module_project_timesheet')66 res['task_work'] = res.get('module_sale_service') and res.get('module_project_timesheet')
67 return res67 return res
6868
69 def get_default_sale_config(self, cr, uid, ids, context=None):69 def get_default_sale_config(self, cr, uid, ids, context=None):
7070
=== modified file 'sale_stock/res_config_view.xml'
--- sale_stock/res_config_view.xml 2014-04-14 09:47:43 +0000
+++ sale_stock/res_config_view.xml 2014-05-12 08:55:23 +0000
@@ -38,7 +38,7 @@
38 </xpath> 38 </xpath>
39 <group name='default_options' position="after">39 <group name='default_options' position="after">
40 <field name="module_project_timesheet" invisible="1"/>40 <field name="module_project_timesheet" invisible="1"/>
41 <field name="module_project_mrp" invisible="1"/>41 <field name="module_sale_service" invisible="1"/>
42 </group>42 </group>
43 <div name='warehouse_features' position='inside'>43 <div name='warehouse_features' position='inside'>
44 <div name='default_picking_policy' attrs="{'invisible':[('group_invoice_deli_orders','=',False)]}">44 <div name='default_picking_policy' attrs="{'invisible':[('group_invoice_deli_orders','=',False)]}">
4545
=== modified file 'stock/procurement.py'
--- stock/procurement.py 2014-05-08 11:03:57 +0000
+++ stock/procurement.py 2014-05-12 08:55:23 +0000
@@ -78,7 +78,7 @@
78class procurement_order(osv.osv):78class procurement_order(osv.osv):
79 _inherit = "procurement.order"79 _inherit = "procurement.order"
80 _columns = {80 _columns = {
81 'location_id': fields.many2one('stock.location', 'Procurement Location'), # not required because task may create procurements that aren't linked to a location with project_mrp81 '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
82 'partner_dest_id': fields.many2one('res.partner', 'Customer Address', help="In case of dropshipping, we need to know the destination address more precisely"),82 'partner_dest_id': fields.many2one('res.partner', 'Customer Address', help="In case of dropshipping, we need to know the destination address more precisely"),
83 'move_ids': fields.one2many('stock.move', 'procurement_id', 'Moves', help="Moves created by the procurement"),83 'move_ids': fields.one2many('stock.move', 'procurement_id', 'Moves', help="Moves created by the procurement"),
84 'move_dest_id': fields.many2one('stock.move', 'Destination Move', help="Move which caused (created) the procurement"),84 '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: