Browse Source

[FIX] : Apr 8 Bug Fixed 'crm_dynamic_fields'

pull/354/merge
AjmalCybro 3 weeks ago
parent
commit
1ef4a0b8ed
  1. 2
      crm_dynamic_fields/__manifest__.py
  2. 4
      crm_dynamic_fields/wizard/crm_dynamic_fields.py
  3. 1
      crm_dynamic_fields/wizard/crm_dynamic_fields_views.xml

2
crm_dynamic_fields/__manifest__.py

@ -21,7 +21,7 @@
############################################################################# #############################################################################
{ {
'name': 'CRM Dynamic Fields', 'name': 'CRM Dynamic Fields',
'version': '18.0.1.0.0', 'version': '18.0.1.0.1',
'category': 'Extra Tools', 'category': 'Extra Tools',
'summary': "Helps to Add Custom Fields for Opportunity from user interface", 'summary': "Helps to Add Custom Fields for Opportunity from user interface",
'description': """Adding Custom Fields for Opportunity 'description': """Adding Custom Fields for Opportunity

4
crm_dynamic_fields/wizard/crm_dynamic_fields.py

@ -111,6 +111,7 @@ class CRMDynamicFields(models.TransientModel):
"whether to display extra properties " "whether to display extra properties "
"for this dynamic field in the user " "for this dynamic field in the user "
"interface") "interface")
is_translate =fields.Boolean(string="Translate")
def action_create_fields(self): def action_create_fields(self):
""" Creates a new custom field for the project.project model and adds """ Creates a new custom field for the project.project model and adds
@ -128,7 +129,8 @@ class CRMDynamicFields(models.TransientModel):
'readonly': self.readonly, 'readonly': self.readonly,
'selection': self.selection_field, 'selection': self.selection_field,
'copied': self.copied, 'copied': self.copied,
'is_dynamic': True 'is_dynamic': True,
'translate':self.is_translate,
}) })
inherit_id = self.env.ref('crm.crm_lead_view_form') inherit_id = self.env.ref('crm.crm_lead_view_form')
view_id = self.env.ref('crm.crm_lead_view_form') view_id = self.env.ref('crm.crm_lead_view_form')

1
crm_dynamic_fields/wizard/crm_dynamic_fields_views.xml

@ -32,6 +32,7 @@
invisible="field_type not in ['binary', 'many2many', 'selection', 'float', 'many2one']" invisible="field_type not in ['binary', 'many2many', 'selection', 'float', 'many2one']"
/> />
<field name="required"/> <field name="required"/>
<field name="is_translate"/>
</group> </group>
<group string="Position"> <group string="Position">
<field name="position_field_id" <field name="position_field_id"

Loading…
Cancel
Save