Add, database copy and utils

This commit is contained in:
rodia 2025-04-01 15:04:41 -05:00
parent 61da645cf9
commit c00ae9b9ec
2 changed files with 275613 additions and 0 deletions

275595
utils/agentes-abril-01.dump Normal file

File diff suppressed because one or more lines are too long

18
utils/inventarios.py Normal file
View File

@ -0,0 +1,18 @@
from proteus import Model, config
from random import randint
database = 'tryton'
config_file = '/app/.dev/trytond.cfg'
config.set_trytond(database, config_file=config_file)
Stock = Model.get('stock.inventory')
stock, = Stock.find([('state', '=', 'draft')])
for line in stock.lines:
line.quantity = randint(0, 50)
line.save()