Files
odoo_source/addons/mail/models
Nshimiyimana Séna 6a3ab85c4f [FIX] mail: remove fallback to find a company for currency in mail tracking
BUE

Steps to reproduce
- go to Apps, switch to studio and create and create a new app.
- on the form view, add a Many2one field related to 'Sales Order'.
- add a Ralated Field, related to 'Sales Order > Total'. You will be
  presented with a prompt informing you that you need a currency field
  on the model. Click 'OK' to add the currency field.
- again, add a Ralated Field, related to 'Sales Order > Total'.
- close Studio, fill the form you just created and save.
- switch back to studio and, again, add a Ralated Field, related to
  'Sales Order > Total'.

You will be met with a traceback.

FIX

Actually defining a currency field on currency fields is mandatory. We
don't have to provide a fallback, hence we don't have to fix the fallback.
Simply remove it.

Task-3012648
opw-2951697
Closes odoo/odoo#94831
Closes odoo/odoo#94962

closes odoo/odoo#102918

X-original-commit: 899f3b4897f34576d502cf442ab7059c489870dd
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-10-10 20:52:17 +02:00
..
…