mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: force company in folio invoice
This commit is contained in:
@@ -1641,9 +1641,13 @@ class PmsFolio(models.Model):
|
||||
(making sure to call super() to establish a clean extension chain).
|
||||
"""
|
||||
self.ensure_one()
|
||||
|
||||
journal = (
|
||||
self.env["account.move"]
|
||||
.with_context(default_move_type="out_invoice")
|
||||
.with_context(
|
||||
default_move_type="out_invoice",
|
||||
default_company_id=self.company_id.id,
|
||||
)
|
||||
._get_default_journal()
|
||||
)
|
||||
if not journal:
|
||||
|
||||
Reference in New Issue
Block a user