Toyota Motor and its workers' union have agreed to change its rule on overtime work to make it easier to secure necessary labour when production needs to be raised sharply.