Advertisement
pjmakey2

compraheader

Aug 31st, 2020
2,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. pfs = [8479,8458,8481,8487]
  2. from buy_man import bm_manag
  3. reload(bm_manag)
  4. bmm = bm_manag.BmManag()
  5. for c in pfs:
  6.     compraobj = CompraHeader.objects.get(pk=c)
  7.     compraobj.etiquetado_facturado = False
  8.     compraobj.save()
  9.     bmm.update_rs(query_dict={'comprapk': c})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement