← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~camptocamp/account-financial-tools/fix_bug_1297369 into lp:account-financial-tools

 

Vincent Renaville@camptocamp has proposed merging lp:~camptocamp/account-financial-tools/fix_bug_1297369 into lp:account-financial-tools.

Requested reviews:
  Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c): code review, no test
Related bugs:
  Bug #1297369 in Account - Financial Tools: "7.0 account_cancel_invoice_check_voucher and account_cancel_invoice_check_payment_order define account.invoice as transient"
  https://bugs.launchpad.net/account-financial-tools/+bug/1297369

For more details, see:
https://code.launchpad.net/~camptocamp/account-financial-tools/fix_bug_1297369/+merge/212648

Fix TransiantModel to Model
-- 
https://code.launchpad.net/~camptocamp/account-financial-tools/fix_bug_1297369/+merge/212648
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:account-financial-tools.
=== modified file 'account_cancel_invoice_check_payment_order/account_invoice.py'
--- account_cancel_invoice_check_payment_order/account_invoice.py	2013-01-28 09:26:24 +0000
+++ account_cancel_invoice_check_payment_order/account_invoice.py	2014-03-25 15:47:30 +0000
@@ -22,7 +22,7 @@
 from openerp.osv import osv, orm
 
 
-class account_invoice(orm.TransientModel):
+class account_invoice(orm.Model):
     _inherit = "account.invoice"
 
     def action_cancel(self, cr, uid, ids, *args):

=== modified file 'account_cancel_invoice_check_voucher/account_invoice.py'
--- account_cancel_invoice_check_voucher/account_invoice.py	2013-02-11 10:00:17 +0000
+++ account_cancel_invoice_check_voucher/account_invoice.py	2014-03-25 15:47:30 +0000
@@ -24,7 +24,7 @@
 from openerp.tools.translate import _
 from openerp.osv import osv, orm
 
-class account_invoice(orm.TransientModel):
+class account_invoice(orm.Model):
     _inherit = "account.invoice"
 
     def action_cancel(self, cr, uid, ids, context=None):


References