openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #04637
[Bug 1278080] Re: Broken yml test in account_payment
** Changed in: ocb-addons
Status: New => Fix Released
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1278080
Title:
Broken yml test in account_payment
Status in OpenERP Community Backports (Addons):
Fix Released
Bug description:
The error : openerp.tools.yaml_import: AssertionError in Python code : Due date is not correct.
The YML test file : test/payment_order_process.yml
Extract :
!python {model: payment.order}: |
invoice = self.pool.get('account.invoice').browse(cr, uid, ref("account.demo
_invoice_0"))
payment = self.browse(cr, uid, ref("payment_order_1"))
payment_line = payment.line_ids[0]
assert payment_line.move_line_id, "move line is not created in payment line."
assert invoice.move_id.name == payment_line.ml_inv_ref.number, "invoice reference number is not same created."
assert invoice.partner_id == payment_line.partner_id, "Partner is not correct."
assert invoice.date_due == payment_line.ml_maturity_date, "Due date is not correct."
According to the summary pad http://pad.openerp.com/p/ocb-status, the
first suspect would be https://code.launchpad.net/~camptocamp/ocb-
addons/7.0-fix-bug-1102078
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1278080/+subscriptions
References