Ajuda

0

Automated Action with One2many field

Avatar
Essam Ibrahim

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


2Comentários
Avatar
Descartar
Avatar
KUANTUM STORE
-

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

image seems missing from question