sales order automation
This commit is contained in:
parent
b8c264f779
commit
c842bcff12
2 changed files with 5 additions and 2 deletions
|
|
@ -207,6 +207,7 @@ def manual_response(name, response):
|
|||
new_status = "Estimate Accepted" if accepted else "Lost"
|
||||
|
||||
estimate.custom_response = response
|
||||
estimate.custom_current_status = new_status
|
||||
# estimate.custom_current_status = new_status
|
||||
# estimate.status = "Ordered" if accepted else "Closed"
|
||||
estimate.flags.ignore_permissions = True
|
||||
|
|
@ -311,7 +312,7 @@ def upsert_estimate(data):
|
|||
"customer_name": data.get("customer"),
|
||||
"customer_address": data.get("address_name"),
|
||||
"contact_person": data.get("contact_name"),
|
||||
"letter_head": "company",
|
||||
"letter_head": data.get("company"),
|
||||
})
|
||||
for item in data.get("items", []):
|
||||
item = json.loads(item) if isinstance(item, str) else item
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue