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

Hi

Is there a way to configure Sales Orders to save changes to Delivered Quantities in chatter, similar to changes in Received Quantities in Purchase Orders?


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

Can not be configured
You will need a custom method and a custom template to do this.

Ảnh đại diện
Huỷ bỏ
Tác giả

That's what I was looking for, but is it possible to change it through configuration? I can see the field qty_delivered in the Sales Order Line model and tracking property, but it's not editable. The Stored property is editable, but Tracking is not.

Now the weird thing is, that if I look up the qty_received field in the purchase order line model, is loooks the same: Stored and no tracking. But changed do get saved in the chatter anyway.

I went through the source code and found that there is a method '_track_qty_received' and a template 'track_po_line_qty_received_template' which enables the observed behaviour.

To answer the question "if it is possible to configure?" answer is no

Unless you're strictly against customisation it's better to do it that way.

If you need help in writing custom code to enable logging of qty_delivered, feel free to reach out.

Tác giả

That's a little bit disappointing, I thought something like this would be part of the base funcionality.

About custom methods: I am not strictly against it, but we're on Odoo online. I understand it's not possible to install custom modules.

You're right, can not install custom modules but you can still use automated action paired with python script.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 24
1775
2
thg 6 25
470
1
thg 1 25
1202
2
thg 2 24
7010
1
thg 3 23
3186