add_line
Add a line to a one2many or many2many list field, fill its cells in order, and get invalid required cells listed for correction.
Instructions
Add a line to a one2many/many2many list field (e.g. order_line) and fill it: click "Add a line", set each cell in the given order (put the main many2one such as product_id first), validate the row. If required cells are missing the row stays in edition and invalid_cells lists them (fill them with set_field(..., line="editing", list_field=...)). Falls back to the popup form when the list is not editable inline. create: label of the add link when there are several.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| scope | No | auto | |
| create | No | ||
| values | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |