Merge pull request #14298 from bafbes/abb110230

fetch product model_pdf field
This commit is contained in:
Laurent Destailleur 2020-07-29 13:19:09 +02:00 committed by GitHub
commit 9bef1ef6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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_sell, accountancy_code_sell_intra, accountancy_code_sell_export, stock, pmp,";
$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";
if ($id) {
$sql .= " WHERE rowid = ".(int) $id;
@ -2134,6 +2134,7 @@ class Product extends CommonObject
$this->fk_price_expression = $obj->fk_price_expression;
$this->fk_unit = $obj->fk_unit;
$this->price_autogen = $obj->price_autogen;
$this->model_pdf = $obj->model_pdf;
$this->db->free($resql);