Skip to Content
Menu
This question has been flagged

Hi everyone, I made new app by odoo Studio and the field in this (New app) model was:


Label Name

Technical name

Type

Name

x_name

Text (char)

Date

x_studio_pickup_date

Date & Time (datetime)

Operation Type

x_studio_operation_type

Many2one (many2one)

From

x_studio_from

Many2one (many2one)

To

x_studio_to

Many2one (many2one)

Contact

x_studio_contact

Many2one (many2one)

Product

x_studio_product

Many2one (many2one)

Quantity

x_studio_qty

Decimal (float)


Now when I try to make new automated action to Transfer model after update the status from Draft to Confirmed and the action to do is Create a new Record like Picture down


All the data to write in the green box was working great but the problem in the red box and what I want to do is how to record the Product and Quantity there because the type of field is One2many

hope any one help me to write the correct Python code


Thanks again


Avatar
Discard

Hello. were you able to solve it? . I'm in the same situation

image seems missing from question

Related Posts Replies Views Activity
0
Jun 22
179
1
Feb 24
582
2
Jan 24
600
0
Feb 22
1414
0
May 21
1148