[FIX] account_anglo_saxon: fixed error in yaml test (no fiscal year defined for an...
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 6 Jan 2014 16:42:30 +0000 (17:42 +0100)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Mon, 6 Jan 2014 16:42:30 +0000 (17:42 +0100)
bzr revid: qdp-launchpad@openerp.com-20140106164230-lrgo56jvob51m1ba

addons/account_anglo_saxon/test/anglo_saxon.yml
addons/account_anglo_saxon/test/anglo_saxon_avg_fifo.yml

index bb82803..90edbb6 100644 (file)
   As the Invoice state of the picking order is To be invoiced. I create invoice for my outgoing picking order.
 -
   !python {model: stock.invoice.onshipping}: |
-    wiz_id = self.create(cr, uid, {'invoice_date': '2013-03-04', 'journal_id': ref('account.sales_journal')},
+    import time
+    wiz_id = self.create(cr, uid, {'invoice_date': time.strftime('%Y-03-04'), 'journal_id': ref('account.sales_journal')},
       {'active_ids': [ref("stock_picking_out001")], "active_model": "stock.picking"})
     self.create_invoice(cr, uid, [wiz_id], {"active_ids": [ref("stock_picking_out001")], "active_id": ref("stock_picking_out001")})
 -
index a30f947..66502e3 100644 (file)
   As the Invoice state of the picking order is To be invoiced. I create invoice for my outgoing picking order.
 -
   !python {model: stock.invoice.onshipping}: |
-    wiz_id = self.create(cr, uid, {'invoice_date': '2013-03-04', 'journal_id': ref('account.sales_journal')},
+    import time
+    wiz_id = self.create(cr, uid, {'invoice_date': time.strftime('%Y-03-04'), 'journal_id': ref('account.sales_journal')},
       {'active_ids': [ref("stock_picking_out001_fifo")], "active_model": "stock.picking"})
     self.create_invoice(cr, uid, [wiz_id], {"lang": "en_US",
       "search_default_available": 1, "tz": False, "active_model": "stock.picking",