Depending on what exactly you are aiming to do, you may want to consider using the Secondary Unit modules and creating a new Unit of Measure Category for cartons, and a new Unit of Measure in this category for just cartons (with rate / factor of 1).
Here is some more info: Uom Conversion Inter category on product
Related modules:
- Account Invoice Secondary Unit Module — Tryton module to add a secondary unit on invoice line
- Purchase Secondary Unit Module — Tryton module to add a secondary unit on purchase line
- Sale Secondary Unit Module — Tryton module to add a secondary unit on sale line
- Stock Secondary Unit Module — Tryton module to add a secondary unit on stock move