Here we taking an example of a sales order
In the data, we have the customer's email, so in the configuration, we use the email to search for the corresponding customer record. In the 'Field to search for M2O' setting, we have specified the email field, which belongs to the customer model (res.partner).
Sub mapping table of Sales order line (sale.order.line)
Sample file of product with its variants
Main mapping table of Product (product.template)
In the data, we have the attribute value names, so in the configuration, we use these names to search for the corresponding records in the product template attribute values. In the 'Field to search for M2M' setting, we have specified the value field. If you have different values associated with a many-to-many field and want to search using a specific field, you can define that field in the configuration. Otherwise, by default, the system performs the search using the name field.
Sample file of customers
Main mapping table of Customer/Partner (res.partner)
Sample file of product inventory
(You need to select the inventory location in FTP/SFTP configuration or else manually import pop-up)