Please review this at http://codereview.appspot.com/1894045/show
Affected files: M INSTALL M invoice.py Index: INSTALL =================================================================== --- a/INSTALL +++ b/INSTALL @@ -4,8 +4,8 @@ Prerequisites ------------- - * Python 2.4 or later (http://www.python.org/) - * trytond 0.0.x (http://www.tryton.org/) + * Python 2.6 or later (http://www.python.org/) + * trytond (http://www.tryton.org/) * trytond_account_invoice (http://www.tryton.org/) Installation Index: invoice.py =================================================================== --- a/invoice.py +++ b/invoice.py @@ -1,8 +1,9 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. +import copy from trytond.model import ModelView, ModelSQL, fields from trytond.pyson import Eval -import copy +from trytond.transaction import Transaction class Invoice(ModelSQL, ModelView): @@ -35,14 +36,11 @@ class InvoiceLine(ModelSQL, ModelView): _name = 'account.invoice.line' - def _view_look_dom_arch(self, cursor, user, tree, type, context=None): - if context is None: - context = {} + def _view_look_dom_arch(self, tree, type): if type == 'form' and context.get('standalone'): tree_root = tree.getroottree().getroot() if tree_root.get('cursor') == 'product': tree_root.set('cursor', 'party') - return super(InvoiceLine, self)._view_look_dom_arch(cursor, user, tree, - type, context=context) + return super(InvoiceLine, self)._view_look_dom_arch(tree, type) InvoiceLine() -- Cédric Krier B2CK SPRL Rue de Rotterdam, 4 4000 Liège Belgium Tel: +32 472 54 46 59 Email/Jabber: [email protected] Website: http://www.b2ck.com/
pgp310TtTvZWU.pgp
Description: PGP signature
