Error on Creating PDF on BOM

Need help in creating PDF in BOM module instead of .ODT. When I activated the PDF as default. this showed up in the header. Thanks

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to hide sensitive information):
Date: 20241203042928
Dolibarr: 20.0.2 - https://www.dolibarr.org
Level of features: 0
Login: admin
PHP: 8.2.25
Server: LiteSpeed
OS: Linux sg1-cl8-ats1.a2hosting.com 4.18.0-553.5.1.lve.1.el8.x86_64 #1 SMP Fri Jun 14 15:38:45 UTC 2024 x86_64
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Requested URL: /bom/bom_card.php?id=1
Referer: Login @ 20.0.2
Menu manager: eldy_menu.php

Modules/Applications: user, receiptprinter, accounting, agenda, bom, banque, commande, expensereport, facture, fournisseur, ficheinter, holiday, loan, margin, mrp, opensurvey, printing, recruitment, salaries, service, expedition, societe, ticket, takepos, variants, contrat, reception, incoterm, tax, paymentbybanktransfer, prelevement, product, stock, productbatch, workstation, categorie, projet, fckeditor, import, export, bookmark, hrm
Database type manager: mysqli
Latest database access request error: UPDATE llxf8_bom_bom SET last_main_doc = ‘mrp/BOM2410-0001/BOM2410-0001.pdf’ WHERE rowid = 1
Return code for latest database access request error: DB_ERROR_NOSUCHFIELD
Information for latest database access request error: Unknown column ‘last_main_doc’ in ‘field list’

Hello,

It’s quite strange because this field has been introduced for next version (V21).
Can you explain how you end up to that ?
I would like to try to reproduce.

Hi ksar,

Sorry for the late reply, was busy with work. What I did was to go to Setup > Modules/Applications > BOM Settings > Toggle BOM document templates > Status ON - Default ON