Merge branch 'develop' into fix/github-issue/33145
This commit is contained in:
commit
f9be137cf5
@ -533,12 +533,13 @@ def get_accounts(root_type, companies):
|
|||||||
],
|
],
|
||||||
filters={"company": company, "root_type": root_type},
|
filters={"company": company, "root_type": root_type},
|
||||||
):
|
):
|
||||||
if account.account_name not in added_accounts:
|
|
||||||
accounts.append(account)
|
|
||||||
if account.account_number:
|
if account.account_number:
|
||||||
account_key = account.account_number + "-" + account.account_name
|
account_key = account.account_number + "-" + account.account_name
|
||||||
else:
|
else:
|
||||||
account_key = account.account_name
|
account_key = account.account_name
|
||||||
|
|
||||||
|
if account_key not in added_accounts:
|
||||||
|
accounts.append(account)
|
||||||
added_accounts.append(account_key)
|
added_accounts.append(account_key)
|
||||||
|
|
||||||
return accounts
|
return accounts
|
||||||
|
@ -12,7 +12,10 @@ def get_data():
|
|||||||
"Auto Repeat": "reference_document",
|
"Auto Repeat": "reference_document",
|
||||||
"Maintenance Visit": "prevdoc_docname",
|
"Maintenance Visit": "prevdoc_docname",
|
||||||
},
|
},
|
||||||
"internal_links": {"Quotation": ["items", "prevdoc_docname"]},
|
"internal_links": {
|
||||||
|
"Quotation": ["items", "prevdoc_docname"],
|
||||||
|
"Material Request": ["items", "material_request"],
|
||||||
|
},
|
||||||
"transactions": [
|
"transactions": [
|
||||||
{
|
{
|
||||||
"label": _("Fulfillment"),
|
"label": _("Fulfillment"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user