mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms: add external reference folio to invoice
This commit is contained in:
@@ -2019,9 +2019,13 @@ class PmsFolio(models.Model):
|
||||
_("Please define an accounting sales journal for the company %s (%s).")
|
||||
% (self.company_id.name, self.company_id.id)
|
||||
)
|
||||
|
||||
ref = ""
|
||||
if self.name:
|
||||
ref = self.name
|
||||
if self.external_reference:
|
||||
ref += " - " + self.external_reference
|
||||
invoice_vals = {
|
||||
"ref": self.name or "",
|
||||
"ref": ref,
|
||||
"move_type": "out_invoice",
|
||||
"narration": self.note,
|
||||
"currency_id": self.pricelist_id.currency_id.id,
|
||||
|
||||
Reference in New Issue
Block a user