forked from Yaltik/golem
Ajout d'un champs suquence et réordonnement manuel de la liste des attentes
This commit is contained in:
parent
399e55875f
commit
0d4e819e5d
@ -37,6 +37,8 @@ class GolemActivityQueue(models.Model):
|
||||
#activité liée est plein ou non
|
||||
is_activity_full = fields.Char(compute="_isActivityFull")
|
||||
|
||||
sequence = fields.Integer()
|
||||
|
||||
# decider si l'activity liée est pleine ou non : pour group by sur la liste
|
||||
@api.multi
|
||||
@api.depends('places_remain')
|
||||
|
@ -64,7 +64,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<field name="arch" type="xml">
|
||||
|
||||
|
||||
<tree string="Queue Tree" editable="bottom" colors="grey: places_remain == 0; blue : places_remain >= 1">
|
||||
<tree string="Queue Tree" editable="top" colors="grey: places_remain == 0; blue : places_remain >= 1">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="member_id"/>
|
||||
<field name="activity_id" readonly='1'/>
|
||||
<field name="season_id" readonly='1'/>
|
||||
|
@ -45,8 +45,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<group>
|
||||
<field name="queue_activity_number" readonly='1'/>
|
||||
<field name="activity_queue_ids"
|
||||
context="{'default_activity_id': active_id}">
|
||||
context="{'default_activity_id': active_id}" >
|
||||
<tree editable="top">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="member_id"/>
|
||||
<!-- domain="[('season_ids', '=', season_id)]" /> -->
|
||||
<field name="activity_id" readonly="1" />
|
||||
|
@ -39,7 +39,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
<field name="activity_queue_ids"
|
||||
context="{'default_member_id': active_id}">
|
||||
<tree>
|
||||
<tree editable="top">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="activity_id" readonly="1" />
|
||||
<field name="season_id" readonly="1" />
|
||||
</tree>
|
||||
|
Loading…
Reference in New Issue
Block a user