---
title: "scrap (Odoo)"
description: "itgen_odoo_scrap"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.stock.scrap
original: https://documentation.invantive.eu/en/datamodels/odoo/Odoo.stock.scrap
updated: 2023-03-01T15:29:04Z
license: https://documentation.invantive.eu/en/
---

# scrap: Odoo itgen_odoo_scrap

`read only` `per partition`

- Catalog: `Odoo`
- Schema: `stock`
- Label: itgen_odoo_scrap

Scrap

Can only retrieve data.

## Table Columns

The columns of the table `scrap` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `_barcode_scanned` | `varchar2` | Barcode Scanned | [ ] |  | Value of the last barcode scanned. |
| `company_id` | `varchar2` |  | [ ] |  |  |
| `company_id_label` | `varchar2` |  | [ ] |  |  |
| `create_date` | `datetime` | Created on | [ ] |  |  |
| `create_uid` | `varchar2` |  | [ ] |  |  |
| `create_uid_label` | `varchar2` |  | [ ] |  |  |
| `date_done` | `datetime` | Date | [ ] |  |  |
| `display_name` | `varchar2` | Display Name | [ ] |  |  |
| `has_message` | `boolean` | Has Message | [ ] |  |  |
| `id` | `int32` | ID | [ ] |  |  |
| `location_id` | `varchar2` |  | [ ] |  |  |
| `location_id_label` | `varchar2` |  | [ ] |  |  |
| `lot_id` | `varchar2` |  | [ ] |  |  |
| `lot_id_label` | `varchar2` |  | [ ] |  |  |
| `message_attachment_count` | `int32` | Attachment Count | [ ] |  |  |
| `message_follower_ids` | `varchar2` |  | [ ] |  |  |
| `message_has_error` | `boolean` | Message Delivery error | [ ] |  | If checked, some messages have a delivery error. |
| `message_has_error_counter` | `int32` | Number of errors | [ ] |  | Number of messages with delivery error |
| `message_has_sms_error` | `boolean` | SMS Delivery error | [ ] |  | If checked, some messages have a delivery error. |
| `message_ids` | `varchar2` |  | [ ] |  |  |
| `message_is_follower` | `boolean` | Is Follower | [ ] |  |  |
| `message_main_attachment_id` | `varchar2` |  | [ ] |  |  |
| `message_main_attachment_id_label` | `varchar2` |  | [ ] |  |  |
| `message_needaction` | `boolean` | Action Needed | [ ] |  | If checked, new messages require your attention. |
| `message_needaction_counter` | `int32` | Number of Actions | [ ] |  | Number of messages which requires an action |
| `message_partner_ids` | `varchar2` |  | [ ] |  |  |
| `move_id` | `varchar2` |  | [ ] |  |  |
| `move_id_label` | `varchar2` |  | [ ] |  |  |
| `name` | `varchar2` | Reference | [x] |  |  |
| `origin` | `varchar2` | Source Document | [ ] |  |  |
| `owner_id` | `varchar2` |  | [ ] |  |  |
| `owner_id_label` | `varchar2` |  | [ ] |  |  |
| `package_id` | `varchar2` |  | [ ] |  |  |
| `package_id_label` | `varchar2` |  | [ ] |  |  |
| `picking_id` | `varchar2` |  | [ ] |  |  |
| `picking_id_label` | `varchar2` |  | [ ] |  |  |
| `product_barcode` | `varchar2` | Barcode | [ ] |  | International Article Number used for product identification. |
| `product_id` | `varchar2` |  | [ ] |  |  |
| `product_id_label` | `varchar2` |  | [ ] |  |  |
| `product_uom_category_id` | `varchar2` |  | [ ] |  | Conversion between Units of Measure can only occur if they belong to the same category. The conversion will be made based on the ratios. |
| `product_uom_category_id_label` | `varchar2` |  | [ ] |  | Conversion between Units of Measure can only occur if they belong to the same category. The conversion will be made based on the ratios. |
| `product_uom_id` | `varchar2` |  | [ ] |  |  |
| `product_uom_id_label` | `varchar2` |  | [ ] |  |  |
| `production_id` | `varchar2` |  | [ ] |  |  |
| `production_id_label` | `varchar2` |  | [ ] |  |  |
| `scrap_location_id` | `varchar2` |  | [ ] |  |  |
| `scrap_location_id_label` | `varchar2` |  | [ ] |  |  |
| `scrap_qty` | `numeric` | Quantity | [x] |  |  |
| `state` | `varchar2` | Status | [ ] |  |  |
| `tracking` | `varchar2` | Product Tracking | [ ] |  | Ensure the traceability of a storable product in your warehouse. |
| `website_message_ids` | `varchar2` |  | [ ] |  | Website communication history |
| `workorder_id` | `varchar2` |  | [ ] |  |  |
| `workorder_id_label` | `varchar2` |  | [ ] |  |  |
| `write_date` | `datetime` | Last Updated on | [ ] |  |  |
| `write_uid` | `varchar2` |  | [ ] |  |  |
| `write_uid_label` | `varchar2` |  | [ ] |  |  |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Odoo](/en/release-notes/drivers?driver=odoo)

