Compare commits
No commits in common. "a6395787cd9dff22ef19e80a6bb3936f05f2869f" and "24679f5aebfec0e81a3a09e1f2520581822ad775" have entirely different histories.
a6395787cd
...
24679f5aeb
275595
utils/agentes-abril-01.dump
275595
utils/agentes-abril-01.dump
File diff suppressed because one or more lines are too long
@ -1,18 +0,0 @@
|
||||
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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user