|
10 | 10 | <field name="display_lot_sequence_fields" invisible="1" /> |
11 | 11 | <field |
12 | 12 | name="lot_sequence_prefix" |
13 | | - attrs="{'invisible': ['|', '|', ('tracking', 'not in', ['lot', 'serial']), ('display_lot_sequence_fields', '=', False), ('lot_sequence_id', '!=', False)]}" |
| 13 | + invisible="tracking not in ['lot', 'serial'] or not display_lot_sequence_fields or lot_sequence_id" |
14 | 14 | /> |
15 | 15 | <field |
16 | 16 | name="lot_sequence_padding" |
17 | | - attrs="{'invisible': ['|', '|', ('tracking', 'not in', ['lot', 'serial']), ('display_lot_sequence_fields', '=', False), ('lot_sequence_id', '!=', False)]}" |
| 17 | + invisible="tracking not in ['lot', 'serial'] or not display_lot_sequence_fields or lot_sequence_id" |
18 | 18 | /> |
19 | 19 | <field |
20 | 20 | name="lot_sequence_number_next" |
21 | | - attrs="{'readonly': [('lot_sequence_id', '!=', False)], 'invisible': ['|', ('tracking', 'not in', ['lot', 'serial']), ('display_lot_sequence_fields', '=', False)]}" |
| 21 | + readonly="lot_sequence_id" |
| 22 | + invisible="tracking not in ['lot', 'serial'] or not display_lot_sequence_fields" |
22 | 23 | /> |
23 | 24 | <field |
24 | 25 | name="lot_sequence_id" |
25 | | - attrs="{'invisible': ['|', ('tracking', 'not in', ['lot', 'serial']), ('display_lot_sequence_fields', '=', False)]}" |
| 26 | + invisible="tracking not in ['lot', 'serial'] or not display_lot_sequence_fields" |
26 | 27 | /> |
27 | 28 | </field> |
28 | 29 | </field> |
|
0 commit comments