Remove safe_eval
We convert all the fields that were storing python code into PYSON. We add a pyson attribute on field tag to store PYSON value. issue4416 review6971002
This commit is contained in:
@@ -51,7 +51,8 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<record model="ir.action.act_window" id="act_move_form_relate_lot">
|
||||
<field name="name">Moves</field>
|
||||
<field name="res_model">stock.move</field>
|
||||
<field name="domain">[('lot', 'in', Eval('active_ids'))]</field>
|
||||
<field name="domain"
|
||||
eval="[('lot', 'in', Eval('active_ids'))]" pyson="1"/>
|
||||
<field name="order">[('effective_date', 'DESC'), ('planned_date', 'DESC')]</field>
|
||||
</record>
|
||||
<record model="ir.action.keyword"
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page[@id='general']" position="after">
|
||||
<page string="Lots" id="lots"
|
||||
states="{'invisible': ~Eval('type').in_(['goods', 'assets'])}">
|
||||
<page string="Lots" name="lot_required">
|
||||
<label name="lot_required"/>
|
||||
<field name="lot_required" widget="multiselection" yexpand="0"/>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user