Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2137 มุมมอง

I have create a many2one field x_studio_default_warehouse (relation: stock.warehouse) in the res.user model. I configure what the default warehouse for this user would be.

Now I am trying to write an automated action in sales order to automatically set the warehouse_id field as the user_id.x_studio_default_warehouse. The automation is triggered on Creation and Update. Trigger Fields: user_id

for record in self:
    record[("warehouse_id")] = record.user_id.x_studio_default_warehouse
But my code doesn't seem to work. Could someone tell me what I am doing wrong? 

อวตาร
ละทิ้ง

We already have a way to set the default warehouse for each user via the Field Services App. Did you know?

ผู้เขียน

I did not know that since we aren't using the Field Services App. Could achieve what I want using studio automation?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 22
2240
Menu's with different default filter แก้ไขแล้ว
1
ก.ค. 25
1486
2
มี.ค. 25
1708
0
ก.พ. 25
1339
0
ก.พ. 25
1568