mirror of
https://github.com/NaN-tic/trytond-systemlogics_modula.git
synced 2023-12-14 04:32:53 +01:00
Follow PEP-0249 for Transaction and backends
This commit is contained in:
parent
c7bbe2d8e8
commit
3d2dec06da
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ class SystemLogicsModula(ModelSQL, ModelView):
|
|||
def imp_ordini_xml(self, systemlogic, shipments, template, type_):
|
||||
tmpl = loader.load('%s.xml' % template)
|
||||
|
||||
dbname = Transaction().cursor.dbname
|
||||
dbname = Transaction().database.name
|
||||
|
||||
xml = tmpl.generate(systemlogic=systemlogic, shipments=shipments,
|
||||
type_=type_, datetime=datetime).render()
|
||||
|
@ -205,7 +205,7 @@ class SystemLogicsModula(ModelSQL, ModelView):
|
|||
def imp_articoli_xml(self, systemlogic, products):
|
||||
tmpl = loader.load('IMP_ARTICOLI.xml')
|
||||
|
||||
dbname = Transaction().cursor.dbname
|
||||
dbname = Transaction().database.name
|
||||
|
||||
xml = tmpl.generate(products=products).render()
|
||||
|
||||
|
|
Loading…
Reference in a new issue