Skip to content

Commit

Permalink
[IMP] show toursolver rank in toursolver task
Browse files Browse the repository at this point in the history
  • Loading branch information
sbejaoui committed Aug 24, 2023
1 parent b4f080b commit 56fc754
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions shipment_advice_planner_toursolver/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class StockPicking(models.Model):
)
toursolver_shipment_advice_rank = fields.Integer(
readonly=True,
string="Toursolver Rank",
help="The rank given by TourSolver to this picking in the set of planned stops"
" of the related shipment advice",
)
Expand Down
1 change: 1 addition & 0 deletions shipment_advice_planner_toursolver/views/stock_picking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='planned_shipment_advice_id']" position="after">
<field name="toursolver_task_id" />
<field name="toursolver_shipment_advice_rank" />
</xpath>
</field>
</record>
Expand Down
14 changes: 11 additions & 3 deletions shipment_advice_planner_toursolver/views/toursolver_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,17 @@
</group>
<notebook>

<page string="Pickings to plan"><field
name="picking_ids"
/></page>
<page string="Pickings to plan">
<field name="picking_ids">
<tree>
<field name="toursolver_shipment_advice_rank" />
<field name="name" />
<field name="partner_id" />
<field name="origin" />
<field name="state" />
</tree>
</field>
</page>
<page string="Data"><group>
<field
name="request_data"
Expand Down

0 comments on commit 56fc754

Please sign in to comment.