Set company id as context to compute today when creating purchase from request
(grafted from cff41a6ba38cc58aeeaaa9bc2b6d6b2f1b5ddb5e) --HG-- branch : 7.0
This commit is contained in:
@@ -450,7 +450,7 @@ class CreatePurchase(Wizard):
|
||||
for key, grouped_requests in groupby(requests, key=keyfunc):
|
||||
grouped_requests = list(grouped_requests)
|
||||
key = dict(key)
|
||||
with Transaction().set_context(company=key['company']):
|
||||
with Transaction().set_context(company=int(key['company'])):
|
||||
today = Date.today()
|
||||
try:
|
||||
purchase_date = min(r.purchase_date
|
||||
|
||||
Reference in New Issue
Block a user