Skip to content

Commit c8c2f91

Browse files
committed
[IMP] account_payment_order: allow selecting child partners on payment lines
Remove the parent_id domain on partner_id (account.payment.line) and on partner_ids (account.payment.line.create wizard) so contacts/child partners can be freely picked when creating payment lines.
1 parent a803569 commit c8c2f91

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

account_payment_order/models/account_payment_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class AccountPaymentLine(models.Model):
5656
comodel_name="res.partner",
5757
string="Partner",
5858
required=True,
59-
domain=[("parent_id", "=", False)],
6059
check_company=True,
6160
)
6261
partner_bank_id = fields.Many2one(

account_payment_order/wizard/account_payment_line_create.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class AccountPaymentLineCreate(models.TransientModel):
2020
partner_ids = fields.Many2many(
2121
comodel_name="res.partner",
2222
string="Partners",
23-
domain=[("parent_id", "=", False)],
2423
)
2524
target_move = fields.Selection(
2625
selection=[("posted", "All Posted Entries"), ("all", "All Entries")],

0 commit comments

Comments
 (0)