mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] agreement_rebate: Set partner_id to settlement lines
This commit is contained in:
@@ -136,7 +136,9 @@ class AgreementSettlementCreateWiz(models.TransientModel):
|
|||||||
amount_section = 0.0
|
amount_section = 0.0
|
||||||
vals = {
|
vals = {
|
||||||
"agreement_id": agreement.id,
|
"agreement_id": agreement.id,
|
||||||
"partner_id": agreement.partner_id.id,
|
"partner_id": group["partner_id"][0]
|
||||||
|
if "partner_id" in group
|
||||||
|
else agreement.partner_id.id,
|
||||||
}
|
}
|
||||||
if agreement.rebate_type == "line":
|
if agreement.rebate_type == "line":
|
||||||
rebate = amount * line.rebate_discount / 100
|
rebate = amount * line.rebate_discount / 100
|
||||||
|
|||||||
Reference in New Issue
Block a user