T5018 & T4A Slips: CRA XML returns for subcontractor payments and fees for services
by Aerya IT Solutions https://aerya.net$ 87.66
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
T5018 & T4A Slips: CRA XML returns for subcontractor payments and fees for services
File your T5018 contract payment slips and T4A fees for services from the vendor bills you paid in Odoo: thresholds, checks, the CRA XML file, recipient copies, amendments.
SIN and business number check digits
XML validated against the CRA schemas
One price, no subscription
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
on each of the four versions: cash basis, thresholds, periods, XML, amendments, access rights and browser
no warnings
thresholds, dates, identifiers and the XML tested without a database, against the CRA schema packages 1-26-3 and 1-27-1
One return per form and period
Create the T5018 return for the calendar year or your fiscal period, or the T4A return for the year, and press Compute. The module reads what you paid in the period: vendor bills settled by a payment or a bank statement line, payments made without a bill and your manual adjustments.
Each recipient gets one slip with the threshold applied, and every payment counted is listed with its bill, so you can check a total before you file.

Every payment behind a slip
Each line shows the bill, the payment, the date, the box and the amount. Lines left out say why: a product marked as goods, or no box on the product and the account. Partial payments count on their payment date, so a bill paid across two years lands on two returns.

Checked before the file
Each slip lists what CRA would refuse: a social insurance number or business number with a wrong check digit, a missing province or postal code, an address outside Canada, the wrong payer program account. The XML file is made only when no slip has an error.

The XML file for Internet file transfer
Make the file in one click: the T619 electronic transmittal, the slips and the summary, with the totals CRA compares. Upload it in CRA's Internet file transfer service. Above 5 slips CRA requires electronic filing.

Amended and cancelled slips
After filing, amend a slip or cancel it: the module copies it as an amended (A) or cancelled (C) slip and makes a separate file with your amendment note and the totals of those slips only. Slips filed are locked; a slip found late goes out as an additional original slip.

T4A fees for services
Box 048 fees for services, box 020 self-employed commissions and code 028 other income are reported without GST/HST and PST; box 022 income tax deducted comes from an adjustment. A slip when the total is more than $500 or tax was deducted.

Vendor setup on the contact
Mark a vendor as a slip recipient, choose individual, business or partnership, enter the business number and, for individuals, the name and social insurance number. Only the filing managers read and write the SIN; everyone else sees it masked.





Odoo 19 Enterprise screenshots, fictitious company and people.
The file, as the module writes it
The original T5018 file of the demo company: the T619 transmittal, the first slip and the summary (the other slips are left out here). Amended and cancelled files have the same layout with report type A or C and the amendment note.
<Submission>
<T619>
<TransmitterAccountNumber>
<bn15>846201739RZ0001</bn15>
</TransmitterAccountNumber>
<sbmt_ref_id>CS000001</sbmt_ref_id>
<summ_cnt>1</summ_cnt>
<lang_cd>E</lang_cd>
<TransmitterName>
<l1_nm>Northshore Framing Ltd.</l1_nm>
</TransmitterName>
<TransmitterCountryCode>CAN</TransmitterCountryCode>
<CNTC>
<cntc_nm>Dana Whitfield</cntc_nm>
<cntc_area_cd>604</cntc_area_cd>
<cntc_phn_nbr>555-0142</cntc_phn_nbr>
<cntc_email_area>devtest+caslip@example.com</cntc_email_area>
</CNTC>
</T619>
<Return>
<T5018>
<T5018Slip>
<sin>000000000</sin>
<rcpnt_bn>897864328RC0001</rcpnt_bn>
<CORP_PTNRP_NM>
<l1_nm>Ridgeline Drywall Inc.</l1_nm>
</CORP_PTNRP_NM>
<rcpnt_tcd>3</rcpnt_tcd>
<RCPNT_ADDR>
<addr_l1_txt>88 Industrial Way</addr_l1_txt>
<cty_nm>Surrey</cty_nm>
<prov_cd>BC</prov_cd>
<cntry_cd>CAN</cntry_cd>
<pstl_cd>V3W1A1</pstl_cd>
</RCPNT_ADDR>
<bn>846201739RZ0001</bn>
<sbctrcr_amt>58850.00</sbctrcr_amt>
<rpt_tcd>O</rpt_tcd>
</T5018Slip>
<!-- 4 more slips -->
<T5018Summary>
<bn>846201739RZ0001</bn>
<PAYR_NM>
<l1_nm>Northshore Framing Ltd.</l1_nm>
</PAYR_NM>
<PAYR_ADDR>
<addr_l1_txt>4400 Still Creek Drive</addr_l1_txt>
<addr_l2_txt>Unit 210</addr_l2_txt>
<cty_nm>Burnaby</cty_nm>
<prov_cd>BC</prov_cd>
<cntry_cd>CAN</cntry_cd>
<pstl_cd>V5C6C6</pstl_cd>
</PAYR_ADDR>
<CNTC>
<cntc_nm>Dana Whitfield</cntc_nm>
<cntc_area_cd>604</cntc_area_cd>
<cntc_phn_nbr>555-0142</cntc_phn_nbr>
</CNTC>
<PRD_END_DT>
<dy>31</dy>
<mo>12</mo>
<yr>2025</yr>
</PRD_END_DT>
<slp_cnt>5</slp_cnt>
<tot_sbctrcr_amt>111550.00</tot_sbctrcr_amt>
<rpt_tcd>O</rpt_tcd>
</T5018Summary>
</T5018>
</Return>
</Submission>
Everything it includes
Community and Enterprise
Works on Community and Enterprise with the core accounting app.
Box per account or product
Map expense accounts and products to a box; goods are never reported.
Primary activity test
T5018 only when construction is more than 50% of business income, entered or computed from your income accounts.
SIN kept for the filing managers
Field level rights on the SIN, the XML files and the recipient copies.
Recipient copies
A PDF with two copies of each slip, and a summary of the return.
Checked against CRA schemas
Every file made in the tests is validated against the CRA XML schemas.
How you work with it
Once: the payer RZ and RP accounts and the transmitter in the setup; a box on your subcontract and fee accounts; recipients on the vendors.
After the period: create the return, compute, fix the slips with errors.
File: make the XML file, upload it to CRA, note the confirmation number.
Recipients: print and send the recipient copies; amend or cancel a slip when needed.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Requires | Odoo Accounting or Invoicing (account), company in CAD |
| Forms | T5018 (box 22) and T4A (boxes 048, 020, 022, code 028) |
| File | CRA XML for Internet file transfer, T619 transmittal; schema packages of 2026 and 2027 |
| Periods | T4A tax years 2025 and 2026; T5018 periods ending 1 January 2025 to 30 June 2027 |
| Languages | English, French |
What it does not do
It stops with a clear message instead of a doubtful file: a company currency other than CAD, a T5018 return when construction is 50% or less of your business income, periods outside the supported years, a slip with an error (recipient outside Canada, wrong SIN or business number, missing address data), an amendment without a note, and changes to slips already in a file.
Not in this version: T4A-NR and NR4 slips for non-residents, Revenu Québec RL slips, T4A pension and other boxes, sending slips to recipients by e-mail, and the upload to CRA (you upload the file in Internet file transfer). Holidays are not counted in due dates. It is not tax advice.
En français
Produisez les feuillets T5018 (paiements contractuels de construction, case 22) et T4A (honoraires pour services rendus, case 048, et cases 020, 022 et 028) à partir des factures fournisseurs payées dans Odoo, avec le fichier XML de l'ARC pour la transmission par Internet (T619, feuillets et sommaire). Seuils, critère de l'activité principale, vérification du NAS et du NE, feuillets modifiés et annulés, copies pour les bénéficiaires. Le NAS est réservé aux gestionnaires. Interface traduite en français.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 2834 |
| Technical Name |
aerya_ca_slips |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module