[FIX] account: Possibility to choose employees in bank statements
The domain on the partner field in the bank statement lines was too restrictive: You should be able to select partners that aren't either customer or suppliers. For instance, your employees. opw-630017
This commit is contained in:
parent
2996fd0897
commit
43b3b28708
|
@ -607,10 +607,7 @@
|
|||
<field name="date" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="name" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="ref" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="partner_id" domain="[
|
||||
'&',
|
||||
'|',('parent_id','=',False),('is_company','=',True),
|
||||
'|',('customer','=',True),('supplier','=',True)]"
|
||||
<field name="partner_id" domain="['|',('parent_id','=',False),('is_company','=',True)]"
|
||||
context="{'default_supplier': 1}"
|
||||
attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
<field name="amount" attrs="{'readonly' : [('journal_entry_id', '!=', False)] }"/>
|
||||
|
|
Loading…
Reference in New Issue