[ADD] website_sale_aplicoop: Add sequence field to group.order for custom ordering
- Add sequence field to group.order model with default value 10 - Update _order to sort by sequence first, then start_date desc - Add sequence field to tree view with handle widget for drag-and-drop reordering - Add sequence field to form view for manual editing - Orders in website list will now be ordered by sequence field
This commit is contained in:
parent
32f345bc44
commit
cafa19ffea
2 changed files with 9 additions and 1 deletions
|
|
@ -8,6 +8,7 @@
|
|||
<field name="model">group.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Group Orders">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="company_id" optional="hide"/>
|
||||
<field name="name"/>
|
||||
<field name="group_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
|
||||
|
|
@ -50,6 +51,7 @@
|
|||
<group>
|
||||
<group>
|
||||
<field name="company_id" help="Company that owns this group order"/>
|
||||
<field name="sequence" help="Sequence for ordering in website list"/>
|
||||
<field name="group_ids" widget="many2many_tags" help="Groups that can participate in this order"/>
|
||||
<field name="type" help="Type of group order: Regular, Special, or Promotional"/>
|
||||
<field name="start_date" help="Day when the order opens for purchases"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue