Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

when i change env i get data but all data from previous self env i lose it


# i get the name here

print(rec.partner_id.name)       


connection = sql_db.db_connect('odoo1')      

 with contextlib.closing(connection.cursor()) as cr:            

    env = api.Environment(cr, SUPERUSER_ID, {})            

    data = env['sale.order'].search([])


# i get False here

 print(rec.partner_id.name)       

 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 24
2067
0
lis 23
1974
1
kvě 25
4456
1
led 23
1667
1
říj 22
5007