Our Salesmen are able to invoice using different Sales Journals. I have modified the account.invoice.form view so that Sales users can choose the Specific Sales Journal when creating the invoice by modifying the following line:
<field name="journal_id" groups="account.group_account_user" options="{'no_create': True}" attrs="{'readonly':[('move_name','!=',False)]}"/>
changed to
<field name="journal_id" options="{'no_create': True}" attrs="{'readonly':[('move_name','!=',False)]}"/>
However, now Salesmen can select ALL sales journals from the dropdown, and only 1 or 2 correspond to the salesman / Sales Team.
Is there any way to filter these Journals by user or sales team so that only certain journals can be chosen?