[ADD] action context
parent
682666d1e0
commit
40cce38f19
|
@ -120,6 +120,15 @@ class BiSQLView(models.Model):
|
||||||
'sql_valid': [('readonly', False)],
|
'sql_valid': [('readonly', False)],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
action_context = fields.Text(
|
||||||
|
string="Action Context", default="{}", readonly=True,
|
||||||
|
help="Define here a context that will be used"
|
||||||
|
" by default, when creating the action.",
|
||||||
|
states={
|
||||||
|
'draft': [('readonly', False)],
|
||||||
|
'sql_valid': [('readonly', False)],
|
||||||
|
})
|
||||||
|
|
||||||
has_group_changed = fields.Boolean(copy=False)
|
has_group_changed = fields.Boolean(copy=False)
|
||||||
|
|
||||||
bi_sql_view_field_ids = fields.One2many(
|
bi_sql_view_field_ids = fields.One2many(
|
||||||
|
@ -451,6 +460,7 @@ class BiSQLView(models.Model):
|
||||||
'view_mode': view_mode,
|
'view_mode': view_mode,
|
||||||
'view_id': view_id,
|
'view_id': view_id,
|
||||||
'search_view_id': self.search_view_id.id,
|
'search_view_id': self.search_view_id.id,
|
||||||
|
'context': self.action_context,
|
||||||
}
|
}
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
|
|
|
@ -106,6 +106,11 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
<field name="has_group_changed" invisible="1"/>
|
<field name="has_group_changed" invisible="1"/>
|
||||||
</group>
|
</group>
|
||||||
</page>
|
</page>
|
||||||
|
<page string="Action Settings">
|
||||||
|
<group string="Context">
|
||||||
|
<field name="action_context" nolabel="1" colspan="4"/>
|
||||||
|
</group>
|
||||||
|
</page>
|
||||||
<page string="Extras Information">
|
<page string="Extras Information">
|
||||||
<group>
|
<group>
|
||||||
<group string="Model">
|
<group string="Model">
|
||||||
|
|
Loading…
Reference in New Issue