Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
13395 Lượt xem

Is it possible to view the delivery status of Sales Orders and to see the carrier tracking reference for the Delivery Order on the actual Sales Order?

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Yes.

To show a progress bar of the shipping status (since orders can be split if a backorder is required), you would inherit and override the sale.order.tree view and add:

<field name="picked_rate" widget="progressbar" string="Shipped"/>

image description

To show information about deliveries on the Sales Order, you would inherit and override the sale.order.form view and add (as the last page in the notebook):

<page string="Deliveries" groups="base.group_user" attrs="{'invisible': [('state','in',('draft','sent'))]}">
  <field name="picking_ids">
    <tree string="Deliveries">
      <field name="name"/>
      <field name="state"/>
      <field name="min_date"/>
      <field name="date_done"/>
      <field name="carrier_tracking_ref"/>
    </tree>
  </field>
</page>

image description

(Note that you can already click View Delivery Order from the Sales Order to see the same information)

Ảnh đại diện
Huỷ bỏ

I had a crack at doing this on v8 on runbot and couldn't get it to work - it would be good to get confirmation that your mod still works on v8 and it is just my lack of capability that is causing this to not work.

the field picked_rate no longer exists in v8...

the field picked_rate no longer exists in v8...

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3687
1
thg 3 15
9520
1
thg 3 15
9987
1
thg 3 15
5100
1
thg 3 15
4336