Is the Tax transfer for residents of Quebec mandatory?

 I read the transfer is an option, but I've been trying to compare my tax return $ with other softwares and they automatically consider you have to transfer them the 45%, so Do I have to put the 45% of my income tax earned outside of Quebec in box 438 or not?

And what If only lived in the area of Quebec for only one month? (including December 31st)


Thanks 

Importing your data

Line 438 - Tax transfer for residents of Quebec

If you were a resident of Quebec on December 31, 2017, and you earned income, such as employment income, outside Quebec during 2017, tax may have been deducted for a province or territory other than Quebec.

You can transfer to the province of Quebec up to 45% of the income tax shown on information slips issued to you by payers outside Quebec.