Master account sequence management pvy

use @api.one instead and place the logic of taking the first one in next_by_code (next by id should just verify that the user can read the given sequence, and use _next on this sequence if yes)