mirror of
https://github.com/NaN-tic/trytond-patches.git
synced 2023-12-14 06:03:03 +01:00
Add patch for issue4297
This commit is contained in:
parent
10fca2ebae
commit
50f9ec000d
15
issue13681002_1.diff
Normal file
15
issue13681002_1.diff
Normal file
|
@ -0,0 +1,15 @@
|
|||
Index: trytond/trytond/modules/account/move.py
|
||||
===================================================================
|
||||
|
||||
--- a/trytond/trytond/modules/account/move.py
|
||||
+++ b/trytond/trytond/modules/account/move.py
|
||||
@@ -1281,7 +1281,7 @@
|
||||
if not self.account.active:
|
||||
self.raise_user_error('move_inactive_account', (
|
||||
self.account.rec_name,))
|
||||
- if bool(self.party) != self.account.party_required:
|
||||
+ if bool(self.party) != bool(self.account.party_required):
|
||||
error = 'party_set' if self.party else 'party_required'
|
||||
self.raise_user_error(error, self.rec_name)
|
||||
|
||||
|
Loading…
Reference in a new issue