Merge pull request #14298 from bafbes/abb110230
fetch product model_pdf field
This commit is contained in:
commit
9bef1ef6dd
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user