[FIX] account_anglo_saxon: fixed error in yaml test (no fiscal year defined for an...
[odoo/odoo.git] / addons / account_anglo_saxon / test / anglo_saxon_avg_fifo.yml
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",