Closed baimont closed 4 years ago
Right, are you proposing a PR fixing it?
Right, are you proposing a PR fixing it?
At the moment no. A loop calling multiple times the function wouldn't fix adequately the problem since vals would result to be the vals of the last iteration. So from my perspective, a bit of analysis is in order here.
It will require to check each one independently and call super with that isolated record if needs to be written a specific value.
It will require to check each one independently and call super with that isolated record if needs to be written a specific value.
Thanks for your fast answer. Tell me what you think: https://github.com/OCA/vertical-association/pull/90
This: https://github.com/OCA/vertical-association/blob/81e51d8cae307e94a893d217b7abdf9c79209276/membership_variable_period/models/product_template.py#L67 is bad. If self contains more than one record it raises a ValueError.