diff --git a/addons/account_analytic_analysis/__openerp__.py b/addons/account_analytic_analysis/__openerp__.py index 3a866f3f87e..9a971942f30 100644 --- a/addons/account_analytic_analysis/__openerp__.py +++ b/addons/account_analytic_analysis/__openerp__.py @@ -45,9 +45,9 @@ user-wise as well as month wise. "account_analytic_analysis_report.xml" ], 'demo_xml': [], - "css" : [ - "static/src/css/account_analytic.css", - ], +# "css" : [ +# "static/src/css/account_analytic.css", +# ], 'installable': True, 'auto_install': False, 'certificate': '0042927202589', diff --git a/addons/account_analytic_analysis/account_analytic_analysis_view.xml b/addons/account_analytic_analysis/account_analytic_analysis_view.xml index 7dd9b13b4d3..9ab7234b7a1 100644 --- a/addons/account_analytic_analysis/account_analytic_analysis_view.xml +++ b/addons/account_analytic_analysis/account_analytic_analysis_view.xml @@ -23,23 +23,14 @@ - - - + + / Remaining + - - - - - - - - + + +
- -
-
Est.Tot
Invoiced
Remaining
@@ -48,9 +39,7 @@
- - - + - @@ -70,7 +59,6 @@
-
Total
@@ -81,7 +69,8 @@
- + + diff --git a/addons/analytic/analytic_view.xml b/addons/analytic/analytic_view.xml index f82be212af9..3f37d5ec246 100644 --- a/addons/analytic/analytic_view.xml +++ b/addons/analytic/analytic_view.xml @@ -19,17 +19,16 @@ - - - - + + + - - + + - + diff --git a/addons/hr_timesheet/hr_timesheet_view.xml b/addons/hr_timesheet/hr_timesheet_view.xml index 002f646ddc8..2bd7d892d9a 100644 --- a/addons/hr_timesheet/hr_timesheet_view.xml +++ b/addons/hr_timesheet/hr_timesheet_view.xml @@ -86,11 +86,11 @@ form - - - - - + + + + + diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index e83cd2c6d22..09e5680717e 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -77,7 +77,14 @@ class account_analytic_account(osv.osv): _defaults = { 'pricelist_id': lambda self, cr, uid, ctx: ctx.get('pricelist_id', False), } - def on_change_partner_id(self, cr, uid, ids,partner_id, name, context={}): + + def on_change_use_timesheets(self, cr, uid, ids, use_timesheets, context=None): + res = {'value': {}} + if use_timesheets: + ir_model_obj = self.pool.get('ir.model.data') + res['value']['to_invoice'] = ir_model_obj.get_reference(cr, uid, 'hr_timesheet_invoice', 'timesheet_invoice_factor1')[1] + return res + def on_change_partner_id(self, cr, uid, ids,partner_id, name, context=None): res = super(account_analytic_account,self).on_change_partner_id(cr, uid, ids,partner_id, name, context=context) part = self.pool.get('res.partner').browse(cr, uid, partner_id,context=context) pricelist = part.property_product_pricelist and part.property_product_pricelist.id or False diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml index 34935320dad..6f4987bd1c7 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_view.xml @@ -5,12 +5,16 @@ account.analytic.account.invoice.form account.analytic.account form + 30 - + + + +