FIX supplier proposal line extrafields not loaded (#38870)

This commit is contained in:
jman482002 2026-06-22 06:49:00 -05:00 committed by GitHub
parent 97636bf8ad
commit d522c28b70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1367,6 +1367,7 @@ class SupplierProposal extends CommonObject
$line->rowid = $objp->rowid; // deprecated
$line->id = $objp->rowid;
$line->fetch_optionals();
$line->fk_supplier_proposal = $objp->fk_supplier_proposal;
$line->fk_parent_line = $objp->fk_parent_line;
$line->product_type = $objp->product_type;
@ -2701,6 +2702,7 @@ class SupplierProposal extends CommonObject
$this->lines[$i] = new SupplierProposalLine($this->db);
$this->lines[$i]->id = $obj->rowid; // for backward compatibility
$this->lines[$i]->rowid = $obj->rowid;
$this->lines[$i]->fetch_optionals();
$this->lines[$i]->label = $obj->custom_label;
$this->lines[$i]->description = $obj->description;
$this->lines[$i]->fk_product = $obj->fk_product;