Use translatable Partner Ledger with code translation for PDF filename

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2026-03-12 11:30:05 +01:00
parent a98a4ab2a5
commit bb0a9f3925
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,7 @@ class AccountPartnerLedger(models.TransientModel):
help="Show previous balance before the start date.")
def _get_report_base_filename(self):
base = 'Kartica_partnera'
base = _('Partner Ledger').replace(' ', '_')
if self.partner_ids:
names = '_'.join(
name.replace(' ', '_').replace('/', '_').replace('\\', '_')