Sunday, April 4, 2021
1 change · master
Resolved issues and error corrections
This fix prevents an accounting validation check from producing a technical traceback when duplicate supplier references are detected. Business users should now see the intended validation behavior instead of an unexpected system error, improving reliability during invoice processing.
Original PR description
**Description of the issue/feature this PR addresses:**
Traceback 👷🏼 ⛑️
**Current behavior before PR:**
```python
File "addons/account/models/account_move.py", line 1536, in _check_duplicate_supplier_reference
duplicated_moves.mapped(lambda m: "%(partner)s - %(ref)s - %(date)s" % {'ref': m.ref, 'partner': m.partner_id.display_name, 'date': format_date(self.env, m.date)})
TypeError: not all arguments converted during string formatting
```
**Desired behavior after PR is merged:**
No traceback 😃
Info: @wt-io-it
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr