Files
odoo_source/addons/web/static/tests
FrancoisGe a8ad4b5b57 [FIX] web: Save & New with a context dependent parent record
Before this commit, in x2m fields with a parent record dependent context,
the context used to generate default values for a new record by clicking
on "Save & New" could be wrong. It was not based on the edited values of
the parent record.

How to reproduce:
- Go to a form view with a text field (field_a) and an x2m field with the
  context { default_field_b: 'field_a' }.
- Edit the 'field_a'
- Click on "Add a line"
A dialog opens with the edited value of 'field_a' as the value for 'field_b'
- Click on "Save & New"

Before this commit:
    A dialog opens with the unedited value of 'field_a' as the value
    for 'field_b'

After this commit:
    A dialog opens with the edited value of 'field_a' as the value
    for 'field_b'

closes odoo/odoo#114460

X-original-commit: b22ef9d2cc4119c8cd6e9c72103279e37f043440
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-03-08 11:36:59 +01:00
..
2023-03-06 18:52:52 +01:00
…
…