mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_production_estimated_cost
* added some spanish translations * button cost analysis show only estimated lines * miss typing fixed
This commit is contained in:
@@ -74,7 +74,7 @@ msgstr "Líneas de costes"
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost
|
||||
msgid "Costs analysis"
|
||||
msgstr ""
|
||||
msgstr "Análisis de costes"
|
||||
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost
|
||||
@@ -93,12 +93,7 @@ msgstr "Crea OF ficticia"
|
||||
#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of
|
||||
#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view
|
||||
msgid "Create fictitious MO"
|
||||
msgstr "CrearOF ficticia"
|
||||
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view
|
||||
msgid "Create fictitius MO"
|
||||
msgstr ""
|
||||
msgstr "Crear OF ficticia"
|
||||
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: field:wiz.create.fictitious.of,create_uid:0
|
||||
@@ -183,7 +178,7 @@ msgstr "Última actualización el"
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost
|
||||
msgid "Load Estimated Cost on Product"
|
||||
msgstr ""
|
||||
msgstr "Cargar coste estimado en el producto"
|
||||
|
||||
#. module: mrp_production_estimated_cost
|
||||
#: field:wiz.create.fictitious.of,load_on_product:0
|
||||
|
||||
@@ -81,7 +81,7 @@ class MrpProduction(models.Model):
|
||||
'mrp_project.account_analytic_line_mrp_search_view')
|
||||
analytic_line_list = analytic_line_obj.search(
|
||||
[('mrp_production_id', '=', self.id),
|
||||
('task_id', '=', False)])
|
||||
('task_id', '=', False), ('amount', '=', 0)])
|
||||
self = self.with_context(search_default_group_production=1,
|
||||
search_default_group_workorder=1,
|
||||
search_default_group_journal=1)
|
||||
@@ -187,7 +187,7 @@ class MrpProduction(models.Model):
|
||||
return self.env['account.analytic.line'].create(vals)
|
||||
|
||||
@api.model
|
||||
def _create_worcenter_cycles_estimated_cost(self, prod, wc, workorder):
|
||||
def _create_workcenter_cycles_estimated_cost(self, prod, wc, workorder):
|
||||
if workorder.cycle and workorder.workcenter_id.costs_cycle:
|
||||
journal = prod.env.ref('mrp.analytic_journal_machines', False)
|
||||
product = workorder.workcenter_id.product_id
|
||||
@@ -205,7 +205,7 @@ class MrpProduction(models.Model):
|
||||
return self.env['account.analytic.line'].create(vals)
|
||||
|
||||
@api.model
|
||||
def _create_worcenter_hours_estimated_cost(self, prod, wc, workorder):
|
||||
def _create_workcenter_hours_estimated_cost(self, prod, wc, workorder):
|
||||
if workorder.hour and workorder.workcenter_id.costs_hour:
|
||||
product = workorder.workcenter_id.product_id
|
||||
if not product:
|
||||
@@ -252,10 +252,10 @@ class MrpProduction(models.Model):
|
||||
lambda r: r.workcenter == line.workcenter_id)
|
||||
self._create_pre_operation_estimated_cost(record, wc, line)
|
||||
self._create_post_operation_estimated_cost(record, wc, line)
|
||||
done = self._create_worcenter_cycles_estimated_cost(
|
||||
done = self._create_workcenter_cycles_estimated_cost(
|
||||
record, wc, line)
|
||||
if not done:
|
||||
self._create_worcenter_hours_estimated_cost(
|
||||
self._create_workcenter_hours_estimated_cost(
|
||||
record, wc, line)
|
||||
self._create_operators_estimated_cost(record, wc, line)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user