Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error missing fields on fixtures translation #2378

Merged
merged 1 commit into from
Nov 28, 2016
Merged

Fix error missing fields on fixtures translation #2378

merged 1 commit into from
Nov 28, 2016

Conversation

paurosello
Copy link
Contributor

Only name is currently taken from DB, other fields are mandatory to generate translations:

I was getting this error:

  File "/Users/pau/frappe-bench/env/lib/python2.7/site-packages/frappe/translate.py", line 407, in get_messages_from_custom_fields
    if cf['fieldtype'] == 'Selection' and cf.get('options'):
KeyError: u'fieldtype'

Only name is currently taken from DB, other fields are mandatory to generate translations:

      File "/Users/pau/frappe-bench/env/lib/python2.7/site-packages/frappe/translate.py", line 407, in get_messages_from_custom_fields
        if cf['fieldtype'] == 'Selection' and cf.get('options'):
    KeyError: u'fieldtype'
@rmehta rmehta merged commit fe5a516 into frappe:develop Nov 28, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants