Skip to content

Commit

Permalink
[ADD] #132 integrate account_edi_simple_pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Dec 4, 2024
1 parent dd4a09d commit 6467a8a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions ps_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"ps_timesheet_invoicing",
"report_qweb_pdf_watermark",
"ps_calendar",
# TODO: probably replace with yet-to-be-migrated account_edi_simple_pdf
"account_edi",
"account_edi_simple_pdf",
"account_move_tier_validation",
"account_invoice_merge",
],
Expand Down
8 changes: 8 additions & 0 deletions ps_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,11 @@ def _get_name_invoice_report(self):
if not self.company_id.use_standard_layout and ps_invoice:
return "ps_account.report_invoice_document_ps_account"
return super()._get_name_invoice_report()

def _simple_pdf_create_invoice_from_attachment(self, attachment):
"""Fill supplier_invoice_number from ref"""
self = self.with_context(default_supplier_invoice_number="dummy")
result = super()._simple_pdf_create_invoice_from_attachment(attachment)
result.supplier_invoice_number = result.ref
result.ref = False
return result
1 change: 1 addition & 0 deletions repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ edi:
oca: https://github.com/OCA/edi
merges:
- oca 16.0
- oca refs/pull/1091/head
hr:
remotes:
oca: https://github.com/OCA/hr
Expand Down

0 comments on commit 6467a8a

Please # to comment.