fetch product model_pdf field

This commit is contained in:
abb 2020-07-27 10:52:42 +01:00
parent 8cd4636de7
commit fd6477c054

View File

@ -2033,7 +2033,7 @@ class Product extends CommonObject
$sql .= " accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export,"; $sql .= " accountancy_code_buy, accountancy_code_buy_intra, accountancy_code_buy_export,";
$sql .= " accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp,"; $sql .= " accountancy_code_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp,";
$sql .= " datec, tms, import_key, entity, desiredstock, tobatch, fk_unit,"; $sql .= " datec, tms, import_key, entity, desiredstock, tobatch, fk_unit,";
$sql .= " fk_price_expression, price_autogen"; $sql .= " fk_price_expression, price_autogen,model_pdf";
$sql .= " FROM ".MAIN_DB_PREFIX."product"; $sql .= " FROM ".MAIN_DB_PREFIX."product";
if ($id) { if ($id) {
$sql .= " WHERE rowid = ".(int) $id; $sql .= " WHERE rowid = ".(int) $id;
@ -2134,6 +2134,7 @@ class Product extends CommonObject
$this->fk_price_expression = $obj->fk_price_expression; $this->fk_price_expression = $obj->fk_price_expression;
$this->fk_unit = $obj->fk_unit; $this->fk_unit = $obj->fk_unit;
$this->price_autogen = $obj->price_autogen; $this->price_autogen = $obj->price_autogen;
$this->model_pdf = $obj->model_pdf;
$this->db->free($resql); $this->db->free($resql);