diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2011-12-14 17:59:24 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2011-12-14 17:59:24 +0530 |
| commit | 092f97b32b35af6a40b9d2ae70c3159da2fb235f (patch) | |
| tree | 2974d3719af9338cd0b1814da900d7e9ca8d4779 /addons/mrp_operations | |
| parent | 593f5f571bbc49673975afc405e9345ef3457b92 (diff) | |
| parent | e36dc8c5e3ca3da1474747bae5ec87fea19b23b8 (diff) | |
[MERGE] merged with trunk-development-branch
bzr revid: hmo@tinyerp.com-20111214122924-izzibrz1yz67rt7g
Diffstat (limited to 'addons/mrp_operations')
| -rw-r--r-- | addons/mrp_operations/__openerp__.py | 3 | ||||
| -rw-r--r-- | addons/mrp_operations/i18n/hr.po | 233 | ||||
| -rw-r--r-- | addons/mrp_operations/mrp_operations.py | 11 | ||||
| -rw-r--r-- | addons/mrp_operations/mrp_operations_view.xml | 13 | ||||
| -rw-r--r-- | addons/mrp_operations/mrp_operations_workflow_instance.xml | 10 | ||||
| -rw-r--r-- | addons/mrp_operations/security/ir.model.access.csv | 20 |
6 files changed, 160 insertions, 130 deletions
diff --git a/addons/mrp_operations/__openerp__.py b/addons/mrp_operations/__openerp__.py index d965ca5160c..caa33cc6556 100644 --- a/addons/mrp_operations/__openerp__.py +++ b/addons/mrp_operations/__openerp__.py @@ -62,7 +62,8 @@ So that we can compare the theoretic delay and real delay. 'mrp_operations_view.xml', 'mrp_operations_report.xml', 'report/mrp_workorder_analysis_view.xml', - 'process/mrp_operation_process.xml' + 'process/mrp_operation_process.xml', + 'mrp_operations_workflow_instance.xml' ], 'demo_xml': ['mrp_operation_data.xml'], 'test': ['test/mrp_operations.yml', 'test/mrp_operations_report.yml','test/mrp_operation_test.yml'], diff --git a/addons/mrp_operations/i18n/hr.po b/addons/mrp_operations/i18n/hr.po index e9745098516..7a6d5bd3c42 100644 --- a/addons/mrp_operations/i18n/hr.po +++ b/addons/mrp_operations/i18n/hr.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2011-01-03 16:58+0000\n" -"PO-Revision-Date: 2010-10-15 09:07+0000\n" -"Last-Translator: OpenERP Administrators <Unknown>\n" +"PO-Revision-Date: 2011-12-12 10:24+0000\n" +"Last-Translator: Tomislav Bosnjakovic <Unknown>\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-11-05 05:31+0000\n" -"X-Generator: Launchpad (build 14231)\n" +"X-Launchpad-Export-Date: 2011-12-13 05:01+0000\n" +"X-Generator: Launchpad (build 14458)\n" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_wc_action_form @@ -23,17 +23,17 @@ msgstr "" #: view:mrp.production.workcenter.line:0 #: view:mrp.workorder:0 msgid "Work Orders" -msgstr "" +msgstr "Radni nalozi" #. module: mrp_operations #: model:process.node,note:mrp_operations.process_node_canceloperation0 msgid "Cancel the operation." -msgstr "" +msgstr "Cancel the operation." #. module: mrp_operations #: model:ir.model,name:mrp_operations.model_mrp_operations_operation_code msgid "mrp_operations.operation.code" -msgstr "" +msgstr "mrp_operations.operation.code" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:133 @@ -45,76 +45,76 @@ msgstr "" #: view:mrp.production.workcenter.line:0 #: view:mrp.workorder:0 msgid "Group By..." -msgstr "" +msgstr "Grupiraj po..." #. module: mrp_operations #: model:process.node,note:mrp_operations.process_node_workorder0 msgid "Information from the routing definition." -msgstr "" +msgstr "Information from the routing definition." #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "March" -msgstr "" +msgstr "Ožujak" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_wc_resource_planning #: model:ir.ui.menu,name:mrp_operations.menu_mrp_production_wc_resource_planning msgid "Work Centers" -msgstr "" +msgstr "Radni centri" #. module: mrp_operations #: view:mrp.production:0 #: view:mrp.production.workcenter.line:0 #: selection:mrp_operations.operation.code,start_stop:0 msgid "Resume" -msgstr "" +msgstr "Resume" #. module: mrp_operations #: report:mrp.code.barcode:0 msgid "(" -msgstr "" +msgstr "(" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Product to Produce" -msgstr "" +msgstr "Product to Produce" #. module: mrp_operations #: view:mrp_operations.operation:0 msgid "Production Operation" -msgstr "" +msgstr "Production Operation" #. module: mrp_operations #: field:mrp.production,allow_reorder:0 msgid "Free Serialisation" -msgstr "" +msgstr "Free Serialisation" #. module: mrp_operations #: model:process.process,name:mrp_operations.process_process_mrpoperationprocess0 msgid "Mrp Operations" -msgstr "" +msgstr "Mrp operacije" #. module: mrp_operations #: view:mrp.workorder:0 #: field:mrp.workorder,day:0 msgid "Day" -msgstr "" +msgstr "Dan" #. module: mrp_operations #: model:process.node,name:mrp_operations.process_node_productionorder0 msgid "Production Order" -msgstr "" +msgstr "Production Order" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 msgid "Picking Exception" -msgstr "" +msgstr "Skladišna iznimka" #. module: mrp_operations #: model:process.transition,name:mrp_operations.process_transition_productionstart0 msgid "Creation of the work order" -msgstr "" +msgstr "Creation of the work order" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:463 @@ -132,7 +132,7 @@ msgstr "" #. module: mrp_operations #: model:process.transition,note:mrp_operations.process_transition_productionstart0 msgid "The work orders are created on the basis of the production order." -msgstr "" +msgstr "The work orders are created on the basis of the production order." #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:133 @@ -149,28 +149,28 @@ msgstr "" #: selection:mrp.workorder,state:0 #: selection:mrp_operations.operation.code,start_stop:0 msgid "Cancelled" -msgstr "" +msgstr "Otkazani" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_wc_confirm_action msgid "Confirmed Work Orders" -msgstr "" +msgstr "Potvrđeni radni nalozi" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_operation_action #: view:mrp.production.workcenter.line:0 msgid "Operations" -msgstr "" +msgstr "Operations" #. module: mrp_operations #: model:ir.model,name:mrp_operations.model_stock_move msgid "Stock Move" -msgstr "" +msgstr "Skladišni prijenosi" #. module: mrp_operations #: field:mrp.workorder,nbr:0 msgid "# of Lines" -msgstr "" +msgstr "# linija" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 @@ -178,7 +178,7 @@ msgstr "" #: selection:mrp.production.workcenter.line,state:0 #: selection:mrp.workorder,state:0 msgid "Draft" -msgstr "" +msgstr "Nacrt" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 @@ -191,13 +191,13 @@ msgstr "U proizvodnji" #: view:mrp.workorder:0 #: field:mrp.workorder,state:0 msgid "State" -msgstr "" +msgstr "Stanje" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.action_report_mrp_workorder #: model:ir.model,name:mrp_operations.model_mrp_production_workcenter_line msgid "Work Order" -msgstr "" +msgstr "Radni nalog" #. module: mrp_operations #: model:process.transition,note:mrp_operations.process_transition_workstartoperation0 @@ -205,11 +205,13 @@ msgid "" "There is 1 work order per work center. The information about the number of " "cycles or the cycle time." msgstr "" +"Tu je 1 radni nalog po radnom centru. Podaci o broju ciklusa ili vrijeme " +"ciklusa." #. module: mrp_operations #: view:mrp.workorder:0 msgid "Month -1" -msgstr "" +msgstr "Month -1" #. module: mrp_operations #: help:mrp.production.workcenter.line,state:0 @@ -232,7 +234,7 @@ msgstr "" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Planned Date" -msgstr "" +msgstr "Planiran datum" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:479 @@ -244,22 +246,22 @@ msgstr "" #: view:mrp.workorder:0 #: field:mrp.workorder,product_qty:0 msgid "Product Qty" -msgstr "" +msgstr "Količina" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "July" -msgstr "" +msgstr "Srpanj" #. module: mrp_operations #: field:mrp_operations.operation.code,name:0 msgid "Operation Name" -msgstr "" +msgstr "Operation Name" #. module: mrp_operations #: field:mrp_operations.operation.code,start_stop:0 msgid "Status" -msgstr "" +msgstr "Status" #. module: mrp_operations #: model:ir.actions.act_window,help:mrp_operations.mrp_production_wc_action_planning @@ -270,16 +272,20 @@ msgid "" "different impacts on the costs of manufacturing and planning depending on " "the available workload." msgstr "" +"Za proizvodnju ili sastavljanje proizvoda, i korištenje sirovina i gotovih " +"proizvoda morate upravljatii proizvodnim operacijama. Proizvodne operacije " +"često se nazivaju radnim nalozima. Različite operacije će imati različite " +"utjecaje na troškove proizvodnje i planiranje, ovisno o raspoloživosti posla." #. module: mrp_operations #: field:mrp_operations.operation,order_date:0 msgid "Order Date" -msgstr "" +msgstr "Datum naloga" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_wc_draft_action msgid "Future Work Orders" -msgstr "" +msgstr "Future Work Orders" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:459 @@ -292,50 +298,50 @@ msgstr "" #. module: mrp_operations #: model:process.node,name:mrp_operations.process_node_canceloperation0 msgid "Operation Cancelled" -msgstr "" +msgstr "Operation Cancelled" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "September" -msgstr "" +msgstr "Rujan" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "December" -msgstr "" +msgstr "Prosinac" #. module: mrp_operations #: view:mrp.workorder:0 #: field:mrp.workorder,month:0 msgid "Month" -msgstr "" +msgstr "Mjesec" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 msgid "Canceled" -msgstr "" +msgstr "Otkazano" #. module: mrp_operations #: model:ir.model,name:mrp_operations.model_mrp_operations_operation msgid "mrp_operations.operation" -msgstr "" +msgstr "mrp_operations.operation" #. module: mrp_operations #: model:ir.model,name:mrp_operations.model_mrp_workorder msgid "Work Order Report" -msgstr "" +msgstr "Work Order Report" #. module: mrp_operations #: field:mrp.production.workcenter.line,date_start:0 #: field:mrp.production.workcenter.line,date_start_date:0 #: field:mrp_operations.operation,date_start:0 msgid "Start Date" -msgstr "" +msgstr "Početni datum" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 msgid "Waiting Goods" -msgstr "" +msgstr "Waiting Goods" #. module: mrp_operations #: view:mrp.production:0 @@ -351,53 +357,53 @@ msgstr "Pauza" #: selection:mrp.production.workcenter.line,state:0 #: selection:mrp.workorder,state:0 msgid "In Progress" -msgstr "U Tijeku" +msgstr "In Progress" #. module: mrp_operations #: model:ir.model,name:mrp_operations.model_mrp_production msgid "Manufacturing Order" -msgstr "" +msgstr "Nalog proizvodnje" #. module: mrp_operations #: view:mrp.production:0 #: view:mrp.production.workcenter.line:0 #: selection:mrp_operations.operation.code,start_stop:0 msgid "Start" -msgstr "" +msgstr "Start" #. module: mrp_operations #: view:mrp_operations.operation:0 msgid "Calendar View" -msgstr "" +msgstr "Calendar View" #. module: mrp_operations #: model:process.transition,note:mrp_operations.process_transition_startcanceloperation0 msgid "" "When the operation needs to be cancelled, you can do it in the work order " "form." -msgstr "" +msgstr "Operaciju je moguće otkazati na kartici radnog naloga." #. module: mrp_operations #: view:mrp.production:0 #: view:mrp.production.workcenter.line:0 msgid "Set Draft" -msgstr "" +msgstr "Set Draft" #. module: mrp_operations #: view:mrp.workorder:0 #: field:mrp.workorder,total_cycles:0 msgid "Total Cycles" -msgstr "" +msgstr "Ukupno ciklusa" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Pending" -msgstr "" +msgstr "Na čekanju" #. module: mrp_operations #: view:mrp_operations.operation.code:0 msgid "Production Operation Code" -msgstr "" +msgstr "Šifra operacije proizvodnje" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:467 @@ -408,12 +414,12 @@ msgstr "" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "August" -msgstr "" +msgstr "Kolovoz" #. module: mrp_operations #: view:mrp.workorder:0 msgid "Started" -msgstr "" +msgstr "Započeto" #. module: mrp_operations #: model:ir.module.module,description:mrp_operations.module_meta_information @@ -451,7 +457,7 @@ msgstr "" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "June" -msgstr "" +msgstr "Lipanj" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:482 @@ -462,28 +468,28 @@ msgstr "" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 msgid "Ready to Produce" -msgstr "" +msgstr "Spremno za proizvodnju" #. module: mrp_operations #: field:stock.move,move_dest_id_lines:0 msgid "Children Moves" -msgstr "" +msgstr "Children Moves" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_wc_action_planning msgid "Work Orders Planning" -msgstr "" +msgstr "Work Orders Planning" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 #: field:mrp.workorder,date:0 msgid "Date" -msgstr "" +msgstr "Datum" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "November" -msgstr "" +msgstr "Studeni" #. module: mrp_operations #: help:mrp.production.workcenter.line,delay:0 @@ -493,22 +499,22 @@ msgstr "" #. module: mrp_operations #: view:mrp.workorder:0 msgid "Search" -msgstr "" +msgstr "Search" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "October" -msgstr "" +msgstr "Listopad" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "January" -msgstr "" +msgstr "Siječanj" #. module: mrp_operations #: model:process.node,note:mrp_operations.process_node_doneoperation0 msgid "Finish the operation." -msgstr "" +msgstr "Završi operacije." #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:452 @@ -519,7 +525,7 @@ msgstr "" #. module: mrp_operations #: model:process.node,note:mrp_operations.process_node_productionorder0 msgid "Information from the production order." -msgstr "" +msgstr "Information from the production order." #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:452 @@ -533,13 +539,13 @@ msgstr "" #. module: mrp_operations #: view:mrp.workorder:0 msgid "Current" -msgstr "" +msgstr "Trenutno" #. module: mrp_operations #: field:mrp_operations.operation,code_id:0 #: field:mrp_operations.operation.code,code:0 msgid "Code" -msgstr "" +msgstr "Šifra" #. module: mrp_operations #: code:addons/mrp_operations/mrp_operations.py:475 @@ -555,35 +561,35 @@ msgstr "" #. module: mrp_operations #: model:ir.actions.act_window,name:mrp_operations.mrp_production_code_action msgid "Operation Codes" -msgstr "" +msgstr "Operation Codes" #. module: mrp_operations #: field:mrp.production.workcenter.line,qty:0 msgid "Qty" -msgstr "" +msgstr "Kol." #. module: mrp_operations #: model:process.node,name:mrp_operations.process_node_doneoperation0 msgid "Operation Done" -msgstr "" +msgstr "Operacija izvršena" #. module: mrp_operations #: selection:mrp.production.workcenter.line,production_state:0 #: view:mrp.workorder:0 #: selection:mrp_operations.operation.code,start_stop:0 msgid "Done" -msgstr "" +msgstr "Izvršeno" #. module: mrp_operations #: model:ir.actions.report.xml,name:mrp_operations.report_code_barcode msgid "Start/Stop Barcode" -msgstr "" +msgstr "Start/Stop Barcode" #. module: mrp_operations #: view:mrp.production:0 #: view:mrp.production.workcenter.line:0 msgid "Cancel" -msgstr "" +msgstr "Odustani" #. module: mrp_operations #: model:ir.actions.act_window,help:mrp_operations.mrp_production_wc_action_form @@ -594,36 +600,41 @@ msgid "" "latest operation of a manufacturing order, the MO is automatically done and " "the related products are produced." msgstr "" +"Work Orders is the list of operations to be performed for each manufacturing " +"order. Once you start the first work order of a manufacturing order, the " +"manufacturing order is automatically marked as started. Once you finish the " +"latest operation of a manufacturing order, the MO is automatically done and " +"the related products are produced." #. module: mrp_operations #: model:process.node,name:mrp_operations.process_node_startoperation0 msgid "Start Operation" -msgstr "pokreni operaciju" +msgstr "Pokreni operaciju" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Information" -msgstr "Obavijest" +msgstr "Informacija" #. module: mrp_operations #: model:ir.actions.report.xml,name:mrp_operations.report_wc_barcode msgid "Work Centers Barcode" -msgstr "" +msgstr "Work Centers Barcode" #. module: mrp_operations #: constraint:stock.move:0 msgid "You must assign a production lot for this product" -msgstr "" +msgstr "Morate pridijeliti lot proizvodnje ovom proizvodu" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Late" -msgstr "" +msgstr "Kasni" #. module: mrp_operations #: field:mrp.workorder,delay:0 msgid "Delay" -msgstr "" +msgstr "Kašnjenje" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 @@ -631,41 +642,41 @@ msgstr "" #: field:mrp.workorder,production_id:0 #: field:mrp_operations.operation,production_id:0 msgid "Production" -msgstr "" +msgstr "Proizvodnja" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Search Work Orders" -msgstr "" +msgstr "Search Work Orders" #. module: mrp_operations #: field:mrp_operations.operation,workcenter_id:0 #: model:process.node,name:mrp_operations.process_node_workorder0 msgid "Work Center" -msgstr "" +msgstr "Radni centar" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Real" -msgstr "" +msgstr "Realan" #. module: mrp_operations #: field:mrp.production.workcenter.line,date_planned:0 msgid "Scheduled Date" -msgstr "" +msgstr "Planirani datum" #. module: mrp_operations #: field:mrp.production.workcenter.line,product:0 #: view:mrp.workorder:0 #: field:mrp.workorder,product_id:0 msgid "Product" -msgstr "" +msgstr "Proizvod" #. module: mrp_operations #: view:mrp.workorder:0 #: field:mrp.workorder,total_hours:0 msgid "Total Hours" -msgstr "" +msgstr "Uk. sati" #. module: mrp_operations #: help:mrp.production,allow_reorder:0 @@ -673,16 +684,18 @@ msgid "" "Check this to be able to move independently all production orders, without " "moving dependent ones." msgstr "" +"Provjerite mogućnost nezavisnog izvršavanja radnih naloga, bez izvršavanja " +"ovisnih." #. module: mrp_operations #: report:mrp.code.barcode:0 msgid ")" -msgstr "" +msgstr ")" #. module: mrp_operations #: model:ir.ui.menu,name:mrp_operations.menu_report_mrp_workorders_tree msgid "Work Order Analysis" -msgstr "" +msgstr "Work Order Analysis" #. module: mrp_operations #: view:mrp.production:0 @@ -690,59 +703,59 @@ msgstr "" #: selection:mrp.production.workcenter.line,state:0 #: selection:mrp.workorder,state:0 msgid "Finished" -msgstr "" +msgstr "Dovršeno" #. module: mrp_operations #: field:mrp.production.workcenter.line,uom:0 msgid "UOM" -msgstr "" +msgstr "JM" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Hours by Work Center" -msgstr "" +msgstr "Hours by Work Center" #. module: mrp_operations #: field:mrp.production.workcenter.line,delay:0 msgid "Working Hours" -msgstr "" +msgstr "Radno vrijeme(od-do)" #. module: mrp_operations #: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" -msgstr "" +msgstr "Završni Datum" #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "February" -msgstr "" +msgstr "Veljača" #. module: mrp_operations #: model:process.transition,name:mrp_operations.process_transition_startcanceloperation0 msgid "Operation cancelled" -msgstr "" +msgstr "Operacija otkazana" #. module: mrp_operations #: model:process.node,note:mrp_operations.process_node_startoperation0 msgid "Start the operation." -msgstr "" +msgstr "Start the operation." #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "April" -msgstr "" +msgstr "Travanj" #. module: mrp_operations #: model:process.transition,name:mrp_operations.process_transition_startdoneoperation0 msgid "Operation done" -msgstr "" +msgstr "Operation done" #. module: mrp_operations #: view:mrp.workorder:0 msgid "#Line Orders" -msgstr "" +msgstr "#Line Orders" #. module: mrp_operations #: model:process.transition,note:mrp_operations.process_transition_startdoneoperation0 @@ -750,32 +763,34 @@ msgid "" "When the operation is finished, the operator updates the system by finishing " "the work order." msgstr "" +"When the operation is finished, the operator updates the system by finishing " +"the work order." #. module: mrp_operations #: selection:mrp.workorder,month:0 msgid "May" -msgstr "" +msgstr "Svibanj" #. module: mrp_operations #: model:process.transition,name:mrp_operations.process_transition_workstartoperation0 msgid "Details of the work order" -msgstr "" +msgstr "Detalji radnog naloga" #. module: mrp_operations #: field:mrp.production.workcenter.line,production_state:0 msgid "Production State" -msgstr "" +msgstr "Stanje proizvodnje" #. module: mrp_operations #: view:mrp.workorder:0 #: field:mrp.workorder,year:0 msgid "Year" -msgstr "" +msgstr "Godina" #. module: mrp_operations #: view:mrp.production.workcenter.line:0 msgid "Duration" -msgstr "" +msgstr "Trajanje" #. module: mrp_operations #: constraint:mrp.production:0 @@ -785,7 +800,7 @@ msgstr "" #. module: mrp_operations #: constraint:stock.move:0 msgid "You try to assign a lot which is not from the same product" -msgstr "" +msgstr "Pokušavate pridružiti lot koji nije iz istog proizvoda" #~ msgid "" #~ "The Object name must start with x_ and not contain any special character !" diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 7dc93731b03..e6f5aa00f28 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -86,10 +86,10 @@ class mrp_production_workcenter_line(osv.osv): _order = "sequence, date_planned" _columns = { - 'state': fields.selection([('draft','Draft'),('startworking', 'In Progress'),('pause','Pause'),('cancel','Cancelled'),('done','Finished')],'State', readonly=True, + 'state': fields.selection([('draft','Draft'),('startworking', 'In Progress'),('pause','Pending'),('cancel','Cancelled'),('done','Finished')],'State', readonly=True, help="* When a work order is created it is set in 'Draft' state.\n" \ "* When user sets work order in start mode that time it will be set in 'In Progress' state.\n" \ - "* When work order is in running mode, during that time if user wants to stop or to make changes in order then can set in 'Pause' state.\n" \ + "* When work order is in running mode, during that time if user wants to stop or to make changes in order then can set in 'Pending' state.\n" \ "* When the user cancels the work order it will be set in 'Canceled' state.\n" \ "* When order is completely processed that time it is set in 'Finished' state."), 'date_start_date': fields.function(_get_date_date, string='Start Date', type='date'), @@ -552,6 +552,13 @@ class mrp_operations_operation(osv.osv): return super(mrp_operations_operation, self).create(cr, uid, vals, context=context) + def initialize_workflow_instance(self, cr, uid, context=None): + wf_service = netsvc.LocalService("workflow") + line_ids = self.pool.get('mrp.production.workcenter.line').search(cr, uid, [], context=context) + for line_id in line_ids: + wf_service.trg_create(uid, 'mrp.production.workcenter.line', line_id, cr) + return True + _columns={ 'production_id':fields.many2one('mrp.production','Production',required=True), 'workcenter_id':fields.many2one('mrp.workcenter','Work Center',required=True), diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index 377a57d6121..e7decebbf4b 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -16,7 +16,7 @@ <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/> <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/> <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/> - <button name="button_pause" string="Pause" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> + <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/> </group> </xpath> @@ -30,13 +30,12 @@ <field name="inherit_id" ref="mrp.mrp_production_form_view"/> <field name="arch" type="xml"> <xpath expr="/form/notebook/page/field[@name='workcenter_lines']/tree/field[@name='hour']" position="after"> - <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop"/> + <field name="state"/> <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert"/> <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr"/> <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause"/> - <button name="button_pause" string="Pause" states="startworking" icon="gtk-media-pause"/> + <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause"/> <button name="button_done" string="Finished" states="startworking" icon="terp-check"/> - <field name="state"/> </xpath> </field> </record> @@ -58,11 +57,9 @@ <field name="cycle"/> <field name="hour"/> <field name="state" /> - <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert" help="Set to Draft"/> <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr" help="Start Working"/> <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause" help="Resume Work Order"/> - <button name="button_cancel" string="Cancel" states="draft,startworking" icon="gtk-stop" help="Cancel Order"/> - <button name="button_pause" string="Pause" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> + <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause" help="Pause Work Order"/> <button name="button_done" string="Finished" states="startworking" icon="terp-check" help="Finish Order"/> </tree> </field> @@ -116,7 +113,7 @@ <button name="button_draft" string="Set Draft" states="cancel" icon="gtk-convert"/> <button name="button_start_working" string="Start" states="draft" icon="terp-gtk-jump-to-ltr"/> <button name="button_resume" string="Resume" states="pause" icon="gtk-media-pause"/> - <button name="button_pause" string="Pause" states="startworking" icon="gtk-media-pause"/> + <button name="button_pause" string="Pending" states="startworking" icon="gtk-media-pause"/> <button name="button_done" string="Finished" states="startworking" icon="terp-check"/> </group> </page> diff --git a/addons/mrp_operations/mrp_operations_workflow_instance.xml b/addons/mrp_operations/mrp_operations_workflow_instance.xml new file mode 100644 index 00000000000..b8239c18ccf --- /dev/null +++ b/addons/mrp_operations/mrp_operations_workflow_instance.xml @@ -0,0 +1,10 @@ +<?xml version="1.0"?> +<openerp> + <data noupdate="1"> + + <!-- Initialize workflow instance --> + <function model="mrp_operations.operation" name="initialize_workflow_instance"/> + + </data> +</openerp> + diff --git a/addons/mrp_operations/security/ir.model.access.csv b/addons/mrp_operations/security/ir.model.access.csv index c27d8fd66e5..54bfe482edb 100644 --- a/addons/mrp_operations/security/ir.model.access.csv +++ b/addons/mrp_operations/security/ir.model.access.csv @@ -1,10 +1,10 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_mrp_operations_operation_code","operations.operation.code","model_mrp_operations_operation_code","mrp.group_mrp_user",1,1,1,1 -"access_mrp_operations_operation_code_manager","operations.operation.code.manager","model_mrp_operations_operation_code","mrp.group_mrp_manager",1,0,0,0 -"access_mrp_operations_operation","operations.operation","model_mrp_operations_operation","mrp.group_mrp_user",1,1,1,1 -"access_mrp_operations_operation_manager","operations.operation.manager","model_mrp_operations_operation","mrp.group_mrp_manager",1,0,0,0 -"access_mrp_production_user","mrp_production_user","model_mrp_production","mrp.group_mrp_user",1,1,1,1 -"access_mrp_production_manager","mrp_production_manager","model_mrp_production","mrp.group_mrp_manager",1,0,0,0 -"access_mrp_production_workcenter_line","mrp.production.workcenter.line","mrp.model_mrp_production_workcenter_line","mrp.group_mrp_user",1,1,1,1 -"access_mrp_production_workcenter_line_manager","mrp.production.workcenter.line.manager","mrp.model_mrp_production_workcenter_line","mrp.group_mrp_manager",1,0,0,0 -"access_mrp_workorder_manager","mrp.workorder.manager","model_mrp_workorder","mrp.group_mrp_manager",1,1,1,1 +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_mrp_operations_operation_code,operations.operation.code,model_mrp_operations_operation_code,mrp.group_mrp_user,1,1,1,1
+access_mrp_operations_operation_code_manager,operations.operation.code.manager,model_mrp_operations_operation_code,mrp.group_mrp_manager,1,0,0,0
+access_mrp_operations_operation,operations.operation,model_mrp_operations_operation,mrp.group_mrp_user,1,1,1,1
+access_mrp_operations_operation_manager,operations.operation.manager,model_mrp_operations_operation,mrp.group_mrp_manager,1,0,0,0
+access_mrp_production_user,mrp_production_user,model_mrp_production,mrp.group_mrp_user,1,1,1,1
+access_mrp_production_manager,mrp_production_manager,model_mrp_production,mrp.group_mrp_manager,1,0,0,0
+access_mrp_production_workcenter_line,mrp.production.workcenter.line,mrp.model_mrp_production_workcenter_line,mrp.group_mrp_user,1,1,1,1
+access_mrp_production_workcenter_line_manager,mrp.production.workcenter.line.manager,mrp.model_mrp_production_workcenter_line,mrp.group_mrp_manager,1,0,0,0
+access_mrp_workorder_manager,mrp.workorder.manager,model_mrp_workorder,mrp.group_mrp_manager,1,1,1,1
|
