Merge lp:~openerp-dev/openobject-addons/trunk-addons7-bom-aja into lp:~openerp-dev/openobject-addons/trunk-addons7
- trunk-addons7-bom-aja
- Merge into trunk-addons7
Proposed by
ajay javiya (OpenERP)
Status: | Merged |
---|---|
Merged at revision: | 7328 |
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-addons7-bom-aja |
Merge into: | lp:~openerp-dev/openobject-addons/trunk-addons7 |
Diff against target: |
254 lines (+7/-112) 5 files modified
mrp/i18n/mrp.pot (+0/-55) mrp/mrp.py (+0/-21) mrp/mrp_view.xml (+7/-33) mrp/security/ir.model.access.csv (+0/-2) sale_mrp/security/ir.model.access.csv (+0/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-addons7-bom-aja |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jigar A. | Approve | ||
Review via email: mp+122190@code.launchpad.net |
Commit message
Description of the change
Hello,
remove revision tab and all related field and add open chatter in the bottom as a replacement.
Thank You
To post a comment you must log in.
Revision history for this message
Jigar A. (ifixthat) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'mrp/i18n/mrp.pot' | |||
2 | --- mrp/i18n/mrp.pot 2012-08-08 14:46:13 +0000 | |||
3 | +++ mrp/i18n/mrp.pot 2012-08-31 05:12:54 +0000 | |||
4 | @@ -197,11 +197,6 @@ | |||
5 | 197 | msgstr "" | 197 | msgstr "" |
6 | 198 | 198 | ||
7 | 199 | #. module: mrp | 199 | #. module: mrp |
8 | 200 | #: field:mrp.bom.revision,indice:0 | ||
9 | 201 | msgid "Revision" | ||
10 | 202 | msgstr "" | ||
11 | 203 | |||
12 | 204 | #. module: mrp | ||
13 | 205 | #: model:ir.actions.act_window,help:mrp.product_form_config_action | 200 | #: model:ir.actions.act_window,help:mrp.product_form_config_action |
14 | 206 | msgid "Create a product form for everything you buy or sell. Specify a supplier if the product can be purchased." | 201 | msgid "Create a product form for everything you buy or sell. Specify a supplier if the product can be purchased." |
15 | 207 | msgstr "" | 202 | msgstr "" |
16 | @@ -436,11 +431,6 @@ | |||
17 | 436 | msgstr "" | 431 | msgstr "" |
18 | 437 | 432 | ||
19 | 438 | #. module: mrp | 433 | #. module: mrp |
20 | 439 | #: field:mrp.bom.revision,date:0 | ||
21 | 440 | msgid "Modification Date" | ||
22 | 441 | msgstr "" | ||
23 | 442 | |||
24 | 443 | #. module: mrp | ||
25 | 444 | #: help:mrp.workcenter,costs_cycle_account_id:0 | 434 | #: help:mrp.workcenter,costs_cycle_account_id:0 |
26 | 445 | #: help:mrp.workcenter,costs_hour_account_id:0 | 435 | #: help:mrp.workcenter,costs_hour_account_id:0 |
27 | 446 | msgid "Complete this only if you want automatic analytic accounting entries on production orders." | 436 | msgid "Complete this only if you want automatic analytic accounting entries on production orders." |
28 | @@ -494,11 +484,6 @@ | |||
29 | 494 | msgstr "" | 484 | msgstr "" |
30 | 495 | 485 | ||
31 | 496 | #. module: mrp | 486 | #. module: mrp |
32 | 497 | #: field:mrp.bom.revision,author_id:0 | ||
33 | 498 | msgid "Author" | ||
34 | 499 | msgstr "" | ||
35 | 500 | |||
36 | 501 | #. module: mrp | ||
37 | 502 | #: field:report.mrp.inout,value:0 | 487 | #: field:report.mrp.inout,value:0 |
38 | 503 | msgid "Stock value" | 488 | msgid "Stock value" |
39 | 504 | msgstr "" | 489 | msgstr "" |
40 | @@ -762,11 +747,6 @@ | |||
41 | 762 | msgstr "" | 747 | msgstr "" |
42 | 763 | 748 | ||
43 | 764 | #. module: mrp | 749 | #. module: mrp |
44 | 765 | #: field:mrp.bom.revision,name:0 | ||
45 | 766 | msgid "Modification name" | ||
46 | 767 | msgstr "" | ||
47 | 768 | |||
48 | 769 | #. module: mrp | ||
49 | 770 | #: view:mrp.bom:0 | 750 | #: view:mrp.bom:0 |
50 | 771 | #: view:mrp.production:0 | 751 | #: view:mrp.production:0 |
51 | 772 | msgid "Date" | 752 | msgid "Date" |
52 | @@ -1295,11 +1275,6 @@ | |||
53 | 1295 | msgstr "" | 1275 | msgstr "" |
54 | 1296 | 1276 | ||
55 | 1297 | #. module: mrp | 1277 | #. module: mrp |
56 | 1298 | #: model:ir.model,name:mrp.model_mrp_bom_revision | ||
57 | 1299 | msgid "Bill of Material Revision" | ||
58 | 1300 | msgstr "" | ||
59 | 1301 | |||
60 | 1302 | #. module: mrp | ||
61 | 1303 | #: help:mrp.production,origin:0 | 1278 | #: help:mrp.production,origin:0 |
62 | 1304 | msgid "Reference of the document that generated this production order request." | 1279 | msgid "Reference of the document that generated this production order request." |
63 | 1305 | msgstr "" | 1280 | msgstr "" |
64 | @@ -1773,12 +1748,6 @@ | |||
65 | 1773 | msgstr "" | 1748 | msgstr "" |
66 | 1774 | 1749 | ||
67 | 1775 | #. module: mrp | 1750 | #. module: mrp |
68 | 1776 | #: field:mrp.bom.revision,bom_id:0 | ||
69 | 1777 | #: field:procurement.order,bom_id:0 | ||
70 | 1778 | msgid "BoM" | ||
71 | 1779 | msgstr "" | ||
72 | 1780 | |||
73 | 1781 | #. module: mrp | ||
74 | 1782 | #: model:ir.model,name:mrp.model_report_mrp_inout | 1751 | #: model:ir.model,name:mrp.model_report_mrp_inout |
75 | 1783 | #: view:report.mrp.inout:0 | 1752 | #: view:report.mrp.inout:0 |
76 | 1784 | msgid "Stock value variation" | 1753 | msgid "Stock value variation" |
77 | @@ -1796,17 +1765,6 @@ | |||
78 | 1796 | msgstr "" | 1765 | msgstr "" |
79 | 1797 | 1766 | ||
80 | 1798 | #. module: mrp | 1767 | #. module: mrp |
81 | 1799 | #: field:mrp.bom.revision,last_indice:0 | ||
82 | 1800 | msgid "last indice" | ||
83 | 1801 | msgstr "" | ||
84 | 1802 | |||
85 | 1803 | #. module: mrp | ||
86 | 1804 | #: field:mrp.bom,revision_ids:0 | ||
87 | 1805 | #: view:mrp.bom.revision:0 | ||
88 | 1806 | msgid "BoM Revisions" | ||
89 | 1807 | msgstr "" | ||
90 | 1808 | |||
91 | 1809 | #. module: mrp | ||
92 | 1810 | #: field:report.mrp.inout,date:0 | 1768 | #: field:report.mrp.inout,date:0 |
93 | 1811 | #: field:report.workcenter.load,name:0 | 1769 | #: field:report.workcenter.load,name:0 |
94 | 1812 | msgid "Week" | 1770 | msgid "Week" |
95 | @@ -1988,19 +1946,6 @@ | |||
96 | 1988 | msgstr "" | 1946 | msgstr "" |
97 | 1989 | 1947 | ||
98 | 1990 | #. module: mrp | 1948 | #. module: mrp |
99 | 1991 | #: view:mrp.bom.revision:0 | ||
100 | 1992 | #: field:mrp.bom.revision,description:0 | ||
101 | 1993 | #: view:mrp.property:0 | ||
102 | 1994 | #: view:mrp.property.group:0 | ||
103 | 1995 | #: field:mrp.routing,note:0 | ||
104 | 1996 | #: view:mrp.routing.workcenter:0 | ||
105 | 1997 | #: field:mrp.routing.workcenter,note:0 | ||
106 | 1998 | #: view:mrp.workcenter:0 | ||
107 | 1999 | #: field:mrp.workcenter,note:0 | ||
108 | 2000 | msgid "Description" | ||
109 | 2001 | msgstr "" | ||
110 | 2002 | |||
111 | 2003 | #. module: mrp | ||
112 | 2004 | #: view:board.board:0 | 1949 | #: view:board.board:0 |
113 | 2005 | msgid "Manufacturing board" | 1950 | msgid "Manufacturing board" |
114 | 2006 | msgstr "" | 1951 | msgstr "" |
115 | 2007 | 1952 | ||
116 | === modified file 'mrp/mrp.py' | |||
117 | --- mrp/mrp.py 2012-08-15 20:51:43 +0000 | |||
118 | +++ mrp/mrp.py 2012-08-31 05:12:54 +0000 | |||
119 | @@ -214,7 +214,6 @@ | |||
120 | 214 | 'bom_id': fields.many2one('mrp.bom', 'Parent BoM', ondelete='cascade', select=True), | 214 | 'bom_id': fields.many2one('mrp.bom', 'Parent BoM', ondelete='cascade', select=True), |
121 | 215 | 'routing_id': fields.many2one('mrp.routing', 'Routing', help="The list of operations (list of work centers) to produce the finished product. The routing is mainly used to compute work center costs during operations and to plan future loads on work centers based on production planning."), | 215 | 'routing_id': fields.many2one('mrp.routing', 'Routing', help="The list of operations (list of work centers) to produce the finished product. The routing is mainly used to compute work center costs during operations and to plan future loads on work centers based on production planning."), |
122 | 216 | 'property_ids': fields.many2many('mrp.property', 'mrp_bom_property_rel', 'bom_id','property_id', 'Properties'), | 216 | 'property_ids': fields.many2many('mrp.property', 'mrp_bom_property_rel', 'bom_id','property_id', 'Properties'), |
123 | 217 | 'revision_ids': fields.one2many('mrp.bom.revision', 'bom_id', 'BoM Revisions'), | ||
124 | 218 | 'child_complete_ids': fields.function(_child_compute, relation='mrp.bom', string="BoM Hierarchy", type='many2many'), | 217 | 'child_complete_ids': fields.function(_child_compute, relation='mrp.bom', string="BoM Hierarchy", type='many2many'), |
125 | 219 | 'company_id': fields.many2one('res.company','Company',required=True), | 218 | 'company_id': fields.many2one('res.company','Company',required=True), |
126 | 220 | } | 219 | } |
127 | @@ -374,26 +373,6 @@ | |||
128 | 374 | 373 | ||
129 | 375 | mrp_bom() | 374 | mrp_bom() |
130 | 376 | 375 | ||
131 | 377 | class mrp_bom_revision(osv.osv): | ||
132 | 378 | _name = 'mrp.bom.revision' | ||
133 | 379 | _description = 'Bill of Material Revision' | ||
134 | 380 | _columns = { | ||
135 | 381 | 'name': fields.char('Modification name', size=64, required=True), | ||
136 | 382 | 'description': fields.text('Description'), | ||
137 | 383 | 'date': fields.date('Modification Date'), | ||
138 | 384 | 'indice': fields.char('Revision', size=16), | ||
139 | 385 | 'last_indice': fields.char('last indice', size=64), | ||
140 | 386 | 'author_id': fields.many2one('res.users', 'Author'), | ||
141 | 387 | 'bom_id': fields.many2one('mrp.bom', 'BoM', select=True), | ||
142 | 388 | } | ||
143 | 389 | |||
144 | 390 | _defaults = { | ||
145 | 391 | 'author_id': lambda x, y, z, c: z, | ||
146 | 392 | 'date': fields.date.context_today, | ||
147 | 393 | } | ||
148 | 394 | |||
149 | 395 | mrp_bom_revision() | ||
150 | 396 | |||
151 | 397 | def rounding(f, r): | 376 | def rounding(f, r): |
152 | 398 | import math | 377 | import math |
153 | 399 | if not r: | 378 | if not r: |
154 | 400 | 379 | ||
155 | === modified file 'mrp/mrp_view.xml' | |||
156 | --- mrp/mrp_view.xml 2012-08-30 13:03:59 +0000 | |||
157 | +++ mrp/mrp_view.xml 2012-08-31 05:12:54 +0000 | |||
158 | @@ -347,7 +347,7 @@ | |||
159 | 347 | <form string="Bill of Material" version="7.0"> | 347 | <form string="Bill of Material" version="7.0"> |
160 | 348 | <label for="product_id" string="Product and Quantity" class="oe_edit_only"/> | 348 | <label for="product_id" string="Product and Quantity" class="oe_edit_only"/> |
161 | 349 | <h1> | 349 | <h1> |
163 | 350 | <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/>: | 350 | <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/> |
164 | 351 | <field name="product_qty" class="oe_inline"/> | 351 | <field name="product_qty" class="oe_inline"/> |
165 | 352 | <field name="product_uom" class="oe_inline" groups="product.group_uom"/> | 352 | <field name="product_uom" class="oe_inline" groups="product.group_uom"/> |
166 | 353 | </h1> | 353 | </h1> |
167 | @@ -389,9 +389,6 @@ | |||
168 | 389 | </tree> | 389 | </tree> |
169 | 390 | </field> | 390 | </field> |
170 | 391 | </page> | 391 | </page> |
171 | 392 | <page string="Revisions" attrs="{'invisible': [('bom_id','!=',False)]}"> | ||
172 | 393 | <field name="revision_ids"/> | ||
173 | 394 | </page> | ||
174 | 395 | <page string="Properties" groups="product.group_mrp_properties"> | 392 | <page string="Properties" groups="product.group_mrp_properties"> |
175 | 396 | <group> | 393 | <group> |
176 | 397 | <group> | 394 | <group> |
177 | @@ -411,6 +408,12 @@ | |||
178 | 411 | <field name="property_ids" widget="many2many_tags"/> | 408 | <field name="property_ids" widget="many2many_tags"/> |
179 | 412 | </page> | 409 | </page> |
180 | 413 | </notebook> | 410 | </notebook> |
181 | 411 | <footer> | ||
182 | 412 | <div class="oe_chatter"> | ||
183 | 413 | <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/> | ||
184 | 414 | <field name="message_follower_ids" widget="mail_followers"/> | ||
185 | 415 | </div> | ||
186 | 416 | </footer> | ||
187 | 414 | </form> | 417 | </form> |
188 | 415 | </field> | 418 | </field> |
189 | 416 | </record> | 419 | </record> |
190 | @@ -542,35 +545,6 @@ | |||
191 | 542 | <field eval="'ir.actions.act_window,'+str(action2)" name="value"/> | 545 | <field eval="'ir.actions.act_window,'+str(action2)" name="value"/> |
192 | 543 | </record> | 546 | </record> |
193 | 544 | 547 | ||
194 | 545 | <record id="mrp_bom_revision_tree" model="ir.ui.view"> | ||
195 | 546 | <field name="name">mrp.bom.revision</field> | ||
196 | 547 | <field name="model">mrp.bom.revision</field> | ||
197 | 548 | <field name="arch" type="xml"> | ||
198 | 549 | <tree string="BoM Revisions"> | ||
199 | 550 | <field name="indice"/> | ||
200 | 551 | <field name="author_id"/> | ||
201 | 552 | <field name="date"/> | ||
202 | 553 | <field colspan="4" name="name"/> | ||
203 | 554 | </tree> | ||
204 | 555 | </field> | ||
205 | 556 | </record> | ||
206 | 557 | <record id="mrp_bom_revision_form" model="ir.ui.view"> | ||
207 | 558 | <field name="name">mrp.bom.revision</field> | ||
208 | 559 | <field name="model">mrp.bom.revision</field> | ||
209 | 560 | <field name="arch" type="xml"> | ||
210 | 561 | <form string="BoM Revisions" version="7.0"> | ||
211 | 562 | <group col="4"> | ||
212 | 563 | <field name="name"/> | ||
213 | 564 | <field name="indice"/> | ||
214 | 565 | <field name="date"/> | ||
215 | 566 | <field name="author_id" readonly="1"/> | ||
216 | 567 | </group> | ||
217 | 568 | <separator string="Description"/> | ||
218 | 569 | <field name="description"/> | ||
219 | 570 | </form> | ||
220 | 571 | </field> | ||
221 | 572 | </record> | ||
222 | 573 | |||
223 | 574 | <!-- | 548 | <!-- |
224 | 575 | Production Management | 549 | Production Management |
225 | 576 | --> | 550 | --> |
226 | 577 | 551 | ||
227 | === modified file 'mrp/security/ir.model.access.csv' | |||
228 | --- mrp/security/ir.model.access.csv 2012-06-21 05:16:16 +0000 | |||
229 | +++ mrp/security/ir.model.access.csv 2012-08-31 05:12:54 +0000 | |||
230 | @@ -3,7 +3,6 @@ | |||
231 | 3 | access_mrp_routing,mrp.routing,model_mrp_routing,mrp.group_mrp_user,1,0,0,0 | 3 | access_mrp_routing,mrp.routing,model_mrp_routing,mrp.group_mrp_user,1,0,0,0 |
232 | 4 | access_mrp_routing_workcenter,mrp.routing.workcenter,model_mrp_routing_workcenter,mrp.group_mrp_user,1,0,0,0 | 4 | access_mrp_routing_workcenter,mrp.routing.workcenter,model_mrp_routing_workcenter,mrp.group_mrp_user,1,0,0,0 |
233 | 5 | access_mrp_bom,mrp.bom,model_mrp_bom,group_mrp_user,1,0,0,0 | 5 | access_mrp_bom,mrp.bom,model_mrp_bom,group_mrp_user,1,0,0,0 |
234 | 6 | access_mrp_bom_revision,mrp.bom.revision,model_mrp_bom_revision,group_mrp_user,1,0,0,0 | ||
235 | 7 | access_mrp_production,mrp.production user,model_mrp_production,mrp.group_mrp_user,1,1,1,1 | 6 | access_mrp_production,mrp.production user,model_mrp_production,mrp.group_mrp_user,1,1,1,1 |
236 | 8 | access_mrp_production_salesman,mrp.production salesman,model_mrp_production,base.group_sale_salesman,1,1,1,0 | 7 | access_mrp_production_salesman,mrp.production salesman,model_mrp_production,base.group_sale_salesman,1,1,1,0 |
237 | 9 | access_mrp_production_product_line_salesman,mrp.production.product.line salesman,model_mrp_production_product_line,base.group_sale_salesman,1,0,1,0 | 8 | access_mrp_production_product_line_salesman,mrp.production.product.line salesman,model_mrp_production_product_line,base.group_sale_salesman,1,0,1,0 |
238 | @@ -16,7 +15,6 @@ | |||
239 | 16 | access_mrp_routing_manager,mrp.routing.manager,model_mrp_routing,mrp.group_mrp_manager,1,1,1,1 | 15 | access_mrp_routing_manager,mrp.routing.manager,model_mrp_routing,mrp.group_mrp_manager,1,1,1,1 |
240 | 17 | access_mrp_routing_workcenter_manager,mrp.routing.workcenter.manager,model_mrp_routing_workcenter,mrp.group_mrp_manager,1,1,1,1 | 16 | access_mrp_routing_workcenter_manager,mrp.routing.workcenter.manager,model_mrp_routing_workcenter,mrp.group_mrp_manager,1,1,1,1 |
241 | 18 | access_mrp_bom_manager,mrp.bom.manager,model_mrp_bom,mrp.group_mrp_manager,1,1,1,1 | 17 | access_mrp_bom_manager,mrp.bom.manager,model_mrp_bom,mrp.group_mrp_manager,1,1,1,1 |
242 | 19 | access_mrp_bom_revision_manager,mrp.bom.revision.manager,model_mrp_bom_revision,mrp.group_mrp_manager,1,1,1,1 | ||
243 | 20 | access_stock_location_mrp_worker,stock.location mrp_worker,stock.model_stock_location,mrp.group_mrp_user,1,0,0,0 | 18 | access_stock_location_mrp_worker,stock.location mrp_worker,stock.model_stock_location,mrp.group_mrp_user,1,0,0,0 |
244 | 21 | access_stock_move_mrp_worker,stock.move mrp_worker,stock.model_stock_move,mrp.group_mrp_user,1,1,1,0 | 19 | access_stock_move_mrp_worker,stock.move mrp_worker,stock.model_stock_move,mrp.group_mrp_user,1,1,1,0 |
245 | 22 | access_stock_picking_mrp_worker,stock.picking mrp_worker,stock.model_stock_picking,mrp.group_mrp_user,1,1,1,1 | 20 | access_stock_picking_mrp_worker,stock.picking mrp_worker,stock.model_stock_picking,mrp.group_mrp_user,1,1,1,1 |
246 | 23 | 21 | ||
247 | === modified file 'sale_mrp/security/ir.model.access.csv' | |||
248 | --- sale_mrp/security/ir.model.access.csv 2012-06-29 10:01:39 +0000 | |||
249 | +++ sale_mrp/security/ir.model.access.csv 2012-08-31 05:12:54 +0000 | |||
250 | @@ -2,4 +2,3 @@ | |||
251 | 2 | access_mrp_bom_user,mrp.bom,mrp.model_mrp_bom,base.group_sale_salesman,1,0,0,0 | 2 | access_mrp_bom_user,mrp.bom,mrp.model_mrp_bom,base.group_sale_salesman,1,0,0,0 |
252 | 3 | access_sale_order_manufacturing_user,sale.order manufacturing.user,sale.model_sale_order,mrp.group_mrp_user,1,1,0,0 | 3 | access_sale_order_manufacturing_user,sale.order manufacturing.user,sale.model_sale_order,mrp.group_mrp_user,1,1,0,0 |
253 | 4 | access_sale_order_line_manufacturing_user,sale.order.line manufacturing.user,sale.model_sale_order_line,mrp.group_mrp_user,1,1,0,0 | 4 | access_sale_order_line_manufacturing_user,sale.order.line manufacturing.user,sale.model_sale_order_line,mrp.group_mrp_user,1,1,0,0 |
254 | 5 | access_mrp_bom_revision_salesman,mrp.bom.revision,mrp.model_mrp_bom_revision,base.group_sale_salesman,1,0,0,0 |