Skip to content

Commit

Permalink
[scrum-90][crm buying role doctype added]
Browse files Browse the repository at this point in the history
  • Loading branch information
anuradha-z committed Oct 16, 2024
1 parent f177f4f commit 9950f87
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
72 changes: 72 additions & 0 deletions crm/fixtures/crm_buying_role.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[
{
"buying_role": "Blocker",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:55:12.941775",
"name": "Blocker"
},
{
"buying_role": "Budget Holder",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:55:35.833456",
"name": "Budget Holder"
},
{
"buying_role": "Decision Maker",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:56:36.681461",
"name": "Decision Maker"
},
{
"buying_role": "End user",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:57:13.925815",
"name": "End user"
},
{
"buying_role": "Influencer",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:57:44.318486",
"name": "Influencer"
},
{
"buying_role": "Technical Evaluator",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:58:01.681582",
"name": "Technical Evaluator"
},
{
"buying_role": "Procurement",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:58:19.417494",
"name": "Procurement"
},
{
"buying_role": "Gatekeeper",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:58:35.509545",
"name": "Gatekeeper"
},
{
"buying_role": "User Advocate",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:58:52.456709",
"name": "User Advocate"
},
{
"buying_role": "Champion",
"docstatus": 0,
"doctype": "CRM Buying Role",
"modified": "2024-10-16 00:56:09.809283",
"name": "Champion"
}
]
1 change: 1 addition & 0 deletions crm/fixtures/custom_field.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
15 changes: 15 additions & 0 deletions crm/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,18 @@
# auth_hooks = [
# "crm.auth.validate"
# ]
fixtures = [
{ "dt": "Custom Field",
"filters": [
["dt", "=", "Contact"],
["fieldname", "=", "buying_role"]
]
} ,
{
"doctype": "CRM Buying Role",
"filters": [
["name", "in", ["Blocker", "Budget Holder", "Champion", "Decision Maker", "End user",
"Influencer","Technical Evaluator","Procurement","Gatekeeper","User Advocate"]]
]
}
]

0 comments on commit 9950f87

Please sign in to comment.