Ashvin Rathod (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-trunk-fix_all_yamls-ara into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-trunk-fix_all_yamls-ara/+merge/72147

Hello,

Fix yml warning of account.

Thanks,
ara
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-trunk-fix_all_yamls-ara/+merge/72147
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-trunk-fix_all_yamls-ara.
=== modified file 'account/test/account_customer_invoice.yml'
--- account/test/account_customer_invoice.yml	2011-01-14 00:11:01 +0000
+++ account/test/account_customer_invoice.yml	2011-08-19 07:50:20 +0000
@@ -36,8 +36,9 @@
   I check that there is no move attached to the invoice
 -
   !python {model: account.invoice}: |
-    acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
-    assert (not acc_id.move_id), "Move falsely created at pro-forma"
+    invoice_id=self.browse(cr, uid, ref("account_invoice_customer0"))
+    if invoice_id.state == 'proforma2':
+        assert (not invoice_id.move_id), "Move falsely created at pro-forma"
 -
   I create invoice by clicking on Create button
 -

=== modified file 'account/test/account_fiscalyear_close_state.yml'
--- account/test/account_fiscalyear_close_state.yml	2011-01-14 00:11:01 +0000
+++ account/test/account_fiscalyear_close_state.yml	2011-08-19 07:50:20 +0000
@@ -12,10 +12,12 @@
   I create monthly Periods for this fiscalyear
 -
   !python {model: account.fiscalyear}: |
-    self.create_period(cr, uid, [ref("account_fiscalyear_fiscalyear0")], {"lang":
-      'en_US', "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_account_fiscalyear_form")],
-      "tz": False, "active_id": ref("account.menu_action_account_fiscalyear_form"),
-      })
+    fy_id = self.browse(cr, uid, ref("account_fiscalyear_fiscalyear0"))
+    if fy_id.state == 'draft':
+        self.create_period(cr, uid, [ref("account_fiscalyear_fiscalyear0")], {"lang":
+          'en_US', "active_model": "ir.ui.menu", "active_ids": [ref("account.menu_action_account_fiscalyear_form")],
+          "tz": False, "active_id": ref("account.menu_action_account_fiscalyear_form"),
+          })
 -
   I check that the fiscalyear state is "Draft"
 -

_______________________________________________
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