Bhumi Thakkar (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-577954-bth into 
lp:openobject-addons/6.1.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577954-bth/+merge/119487

Hello,

 ERROR: Uncaught Error: QWeb2 - template['ListView.rows']: Runtime Error: 
Error: QWeb2 - template['ListView.row']: Runtime Error: Error: NameError: name 
'datetime' is not defined

1. Accounting => Configuration => Analytic Accounting => Analytic Defaults
2. Create one record with start date and end date
3. Click on clear button.

Observed: ERROR: Uncaught Error: QWeb2 - template['ListView.rows']: Runtime 
Error: Error: QWeb2 - template['ListView.row']: Runtime Error: Error: 
NameError: name 'datetime' is not defined
Expected: Displayed All records.

In account_anaytic_default_view.xml file, in tree tag attribute colors has 
expression for current date datetime.date.today().strftime('%%Y-%%m-%%d') which 
could not be parsed by py.js library.
Have to use current_date keyword. Replaced expression by 'current_date' 
keyword. Defined value of current_date in color_for method, view_list.js in web 
client.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-577954-bth/+merge/119487
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-577954-bth.
=== modified file 'account_analytic_default/account_analytic_default_view.xml'
--- account_analytic_default/account_analytic_default_view.xml	2012-01-31 13:36:57 +0000
+++ account_analytic_default/account_analytic_default_view.xml	2012-08-14 08:58:51 +0000
@@ -6,7 +6,7 @@
             <field name="model">account.analytic.default</field>
             <field name="type">tree</field>
             <field name="arch" type="xml">
-                <tree string="Analytic Defaults" colors="grey:date_stop and (date_stop &lt; datetime.date.today().strftime('%%Y-%%m-%%d'))" >
+                <tree string="Analytic Defaults" colors="grey:date_stop and (date_stop &lt; current_date)" >
                     <field name="sequence"/>
                     <field name="analytic_id" required="0" domain="[('parent_id','!=',False)]" groups="analytic.group_analytic_accounting"/>
                     <field name="product_id"/>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to