Ajout d'un champs suquence et réordonnement manuel de la liste des attentes

This commit is contained in:
eloyoussef 2018-02-23 19:38:54 +01:00
parent 399e55875f
commit 0d4e819e5d
4 changed files with 8 additions and 3 deletions

View File

@ -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')

View File

@ -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 &gt;= 1">
<tree string="Queue Tree" editable="top" colors="grey: places_remain == 0; blue : places_remain &gt;= 1">
<field name="sequence" widget="handle"/>
<field name="member_id"/>
<field name="activity_id" readonly='1'/>
<field name="season_id" readonly='1'/>

View File

@ -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" />

View File

@ -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>