Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1135 Tampilan

Hi:

Just incorporated "task_id" to our sales orders as our main follow up sales process via kanban view.

Want to replicate on purchase orders, but can't find the "task_id" variable on Studio.

Any idea as how to incorporate it?

 

Thanks

A


Avatar
Buang
Penulis

Managed to incorporate a "Selection" widget dropdown menu via Studio. However, when doing the Kanban view, column order is not related to the order that I need.

Any idea on how to set up a sequence number on the column?

Thanks
A

Jawaban Terbai

Hi Alfonso,

Since the task_id field is not natively available in the purchase.order model in Odoo, you will need to create a new field or use an existing related field to associate a task with each purchase order.

Here are a few potential solutions:

  1. Create a new task_id field on the purchase.order model:
    • In Odoo Studio, go to the purchase.order model.
    • Create a new field of type Many2one or Reference that links to the project.task model.
    • Name the field task_id or something similar.
    • Save the changes, and you should now have a task_id field available on the purchase order form.
  2. Use an existing related field:
    • If your purchase.order model already has a field that relates to a project or another model that has a task_id field, you can use that existing field to access the task_id indirectly.
    • For example, if you have a project_id field on purchase.order, you could potentially access the task_id through a related field like project_id.task_ids.

Without knowing the exact requirements and structure of your Odoo instance, it's difficult to provide a more specific solution. However, if you provide more details about your use case and the existing models and fields you have available, I can suggest a more tailored approach

Hope it helps

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mar 21
2319
0
Apr 23
74
1
Des 20
2677
0
Nov 23
1203
1
Agu 20
3879