[IMP] change string of date & put start date before end date in list view
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>
Mon, 4 Mar 2013 08:36:52 +0000 (14:06 +0530)
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>
Mon, 4 Mar 2013 08:36:52 +0000 (14:06 +0530)
bzr revid: fka@tinyerp.com-20130304083652-3coo0jeou5lde1z3

addons/account/project/project_view.xml
addons/account_analytic_analysis/account_analytic_analysis_view.xml
addons/analytic/analytic.py

index 175a227..62c8fb3 100644 (file)
@@ -11,8 +11,8 @@
                     <field name="complete_name"/>
                     <field name="partner_id"/>
                     <field name="code"/>
-                    <field name="date"/>
                     <field name="date_start"/>
+                    <field name="date"/>
                     <field name="user_id" invisible="1"/>
                     <field name="manager_id"/>
                     <field name="parent_id" invisible="1"/>
index 64068ed..38836b7 100644 (file)
             <field name="model">account.analytic.account</field>
             <field name="inherit_id" ref="account.view_account_analytic_account_list"/>
             <field name="arch" type="xml">
-                <field name="date" position="before">
+                <field name="date_start" position="before">
                     <field name="last_invoice_date"/>
                     <field name="toinvoice_total"/>
                     <field name="remaining_hours"/>
index 85e21d5..42651ac 100644 (file)
@@ -194,7 +194,7 @@ class account_analytic_account(osv.osv):
         'user_id': fields.many2one('res.users', 'Project Manager'),
         'manager_id': fields.many2one('res.users', 'Account Manager'),
         'date_start': fields.date('Start Date'),
-        'date': fields.date('Date End', select=True),
+        'date': fields.date('End Date', select=True),
         'company_id': fields.many2one('res.company', 'Company', required=False), #not required because we want to allow different companies to use the same chart of account, except for leaf accounts.
         'state': fields.selection([('template', 'Template'),('draft','New'),('open','In Progress'),('pending','To Renew'),('close','Closed'),('cancelled', 'Cancelled')], 'Status', required=True, track_visibility='onchange'),
         'currency_id': fields.function(_currency, fnct_inv=_set_company_currency, #the currency_id field is readonly except if it's a view account and if there is no company