Monday, August 18, 2025
1 change · master
New functionality added to Odoo
US payroll now supports exporting data needed for IRS Forms 940 and 941 as CSV files, making it easier for businesses to prepare federal payroll tax filings through third-party services. The change also reuses bank account type information across US localization modules to support this reporting flow.
Original PR description
The PR consists of 2 commits, the first moves the `l10n_us_bank_account_type` field to `l10n_us` so we can reuse it here. The second implements an export feature for both form 940 and 941, similar to the existing W2 form export. task-5015755 PR notes --- Hello! Some remarks for the HR reviewer that looks at this PR: - I suppose it’s possible to extract a common class `l10n.us.form` that would pull out some common fields and code from `l10n.us.form.940`, `l10n.us.form.941` and `l10n.us.w2`. I’m not sure it’s worth it, let me know your preference! - The tests aren’t perfect because it seems that testing with the full US payslip rules can only happen in `test_us_hr_payroll_account`. I’m not sure it’s appropriate to test these forms there. `l10n.us.w2` has always been untested, so at least these new forms are a relative improvement. Let me know!