summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorXavier BOL (xbo) <xbo@odoo.com>2021-04-23 10:04:17 +0000
committerXavier BOL (xbo) <xbo@odoo.com>2021-05-17 15:54:14 +0000
commit7d49c251cb17d1254372e13e8d205a402cd3a3c0 (patch)
treeb4f2bb552a22c7c957b0ab634cb082a95ad6b4f0 /CONTRIBUTING.md
parent23dd2ea535bea0a57dcac773a81e202135cd2ed6 (diff)
[FIX] pad: copy the pad_content_field content in pad when genrate pad url
Before this commit, in Project App, when the "Collaborative Pads" is enabled in the Settings of this app, if the user create a task without project or in a project that has not the pad enabled and he writes a description for his new task and select (another) project in which the pads is enabled then the description field in the form view changed to have the collaborative pad and the problem is the description is not copied in the pad and seems erase/delete for the user. This commit checks if the pad_content_field is not empty after generating the pad url for the new task/record, if it is the case then we copy the content in the pad and the user can continue his edition before saving the task/record. Step to reproduce: ----------------- 1. Go to Settings of the Project App and enable the Collaborative Pads 2. Go to the Project App, in the Projects dashboard (kanban view of projects) 3. Create two Projects (one called "Project A" and the other called "Project B") 4. Edit the Project B to activate the pad, that is, check the Use collaborative pads checkbox. 5. Go to the view list of tasks in the "Project A" 6. Click on "Create" button to create a task in the task form view. 7. Write a description for this task. 8. Change the project of this task by the Project B. With this change, the collaborative pad is actived for this task since the Project B has the pad, and then the description in the pad is empty rather than have the content that we have just written. task-2515150 closes #70401 X-original-commit: d2b55c775d705128fa65c859c5f47bdaf4b705fe
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions