mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: inherited _is_downpayment move to resolve invoice with downpayment folio sale lines
This commit is contained in:
@@ -400,3 +400,17 @@ class AccountMove(models.Model):
|
|||||||
"#%s" % anchor if anchor else "",
|
"#%s" % anchor if anchor else "",
|
||||||
)
|
)
|
||||||
return url
|
return url
|
||||||
|
|
||||||
|
def _is_downpayment(self):
|
||||||
|
self.ensure_one()
|
||||||
|
if self.folio_ids:
|
||||||
|
return (
|
||||||
|
self.line_ids.folio_line_ids
|
||||||
|
and all(
|
||||||
|
folio_line.is_downpayment
|
||||||
|
for folio_line in self.line_ids.folio_line_ids
|
||||||
|
)
|
||||||
|
or False
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return super(AccountMove, self)._is_downpayment()
|
||||||
|
|||||||
Reference in New Issue
Block a user