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

Hi everyone, i am working on the odoo v18 database upgrade. In v18

* Project 
- Remove the 'analytic_account_id' field from projects 
- Replace it with an analytic notebook allowing to define multiple analytic accounts (one per plan)


I am adding back analytic account at stock move with the below automated rules. However, instead of ONE analytic item is created, now i am getting TWO. Anyone can help me please? 


for record in records:

  analytic_account_id=record.x_project.account_id.id

  for line in record.line_ids:

​#Only include the analytic in the PL lines, so adding if logic

      if line.account_id.id != 841:

        line['analytic_distribution'] = {str(analytic_account_id): 100.0 , 433: 100.0}


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
เม.ย. 25
1969
1
มี.ค. 25
1052
Stock value on the 31st December แก้ไขแล้ว
2
ก.พ. 25
1218
2
ต.ค. 22
21279
0
มิ.ย. 25
537