diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py index f3c2b71122f..633cb09d976 100644 --- a/addons/account/account_analytic_line.py +++ b/addons/account/account_analytic_line.py @@ -110,7 +110,7 @@ class account_analytic_line(osv.osv): amount_unit = prod.price_get('list_price', context)[prod_id] if not company_id: - company_id=company_obj._company_default_get(cr, uid, 'account.analytic.line', context) + company_id = company_obj._company_default_get(cr, uid, 'account.analytic.line', context=context) flag = False # Compute based on pricetype product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','standard_price')], context) @@ -130,9 +130,9 @@ class account_analytic_line(osv.osv): result = round(amount, prec) if not flag: result *= -1 - return {'value': { - 'amount': result, - 'general_account_id': a, + return {'value': { + 'amount': result, + 'general_account_id': a, } } diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 2147d774762..0f58419d1e1 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -73,7 +73,7 @@ class email_server(osv.osv): def check_duplicate(self, cr, uid, ids): # RFC *-* Why this limitation? why not in SQL constraint? vals = self.read(cr, uid, ids, ['user', 'password'])[0] - cr.execute("select count(id) from email_server where user='%s' and password='%s'", (vals['user'], vals['password'])) + cr.execute("select count(id) from email_server where user=%s and password=%s", (vals['user'], vals['password'])) res = cr.fetchone() if res: if res[0] > 1: diff --git a/addons/hr_holidays/i18n/hr_holidays.pot b/addons/hr_holidays/i18n/hr_holidays.pot index 17b58d39daf..ca14a6b76c9 100644 --- a/addons/hr_holidays/i18n/hr_holidays.pot +++ b/addons/hr_holidays/i18n/hr_holidays.pot @@ -715,7 +715,7 @@ msgstr "" #. module: hr_holidays #: help:hr.holidays.status,color_name:0 -msgid "This color will be used in the leaves summary located in Reporting\Leaves by Departement" +msgid "This color will be used in the leaves summary located in Reporting\\Leaves by Departement" msgstr "" #. module: hr_holidays diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index b9d333e7c1b..adc517f1b7c 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -200,16 +200,6 @@ - - Work Centers - ir.actions.act_window - mrp.workcenter - form - - - Work Centers allows you to create and manage manufacturing units consisting of one or several people and/or machines that can be considered as a unit for capacity and planning forecasting. - - @@ -314,7 +304,6 @@ Routings allows you to create and manage the manufacturing operations that should be followed within your work centers in order to produce a product. They are attached to bills of materials that will define the required raw materials. - + + Work Centers + ir.actions.act_window + mrp.workcenter + form + + + Work Centers allows you to create and manage manufacturing units consisting of one or several people and/or machines that can be considered as a unit for capacity and planning forecasting. + + - + diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index 23a351ed3da..5996fe1f258 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -181,9 +181,10 @@ mrp.production.workcenter.line gantt - - + + + @@ -219,22 +220,23 @@ mrp.production.workcenter.line gantt - + - - + + + - Resources + Work Centers ir.actions.act_window mrp.production.workcenter.line form [('production_state','in',('ready','confirmed','in_production'))] - gantt + gantt,tree,form,calendar,graph @@ -279,10 +281,12 @@ id="menu_mrp_production_wc_action_planning" action="mrp_production_wc_action_planning" sequence="2" + icon="STOCK_INDENT" groups="base.group_extended"/> diff --git a/addons/project_long_term/project_long_term_view.xml b/addons/project_long_term/project_long_term_view.xml index 71e96543232..b0647968e84 100644 --- a/addons/project_long_term/project_long_term_view.xml +++ b/addons/project_long_term/project_long_term_view.xml @@ -372,10 +372,12 @@ id="menu_project_phase_list" parent="project.menu_project_management" sequence="2"/>