Add column bomtype

This commit is contained in:
Laurent Destailleur 2020-08-20 23:32:35 +02:00
parent eb15a8e4db
commit 0390111132
2 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,8 @@ ALTER TABLE llx_bom_bom MODIFY COLUMN duration double(24,8);
-- For v13
ALTER TABLE llx_bom_bom ADD COLUMN bomtype integer DEFAULT 0;
UPDATE llx_document_model set nom = 'standard' where nom = 'Standard' and type ='stock';
UPDATE llx_document_model set nom = 'stdmovement', type = 'movement' where nom = 'StdMouvement' and type ='mouvement';

View File

@ -18,7 +18,8 @@ CREATE TABLE llx_bom_bom(
-- BEGIN MODULEBUILDER FIELDS
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
entity integer DEFAULT 1 NOT NULL,
ref varchar(128) NOT NULL,
ref varchar(128) NOT NULL,
bomtype integer DEFAULT 0, -- 0 for a BOM to manufacture, 1 for a BOM to dismantle
label varchar(255),
fk_product integer,
description text,