[ADD]Add not nulls to methods create and write
[ADD]Add code_history_ids to product template and product normal views