// Added one field in Product object, so one product can be managed independantly from the stock management (advanced) if necessary

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11239 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-12-14 18:49:30 +00:00
parent c16aed3424
commit 89213574d0
5 changed files with 54 additions and 5 deletions
+7
View File
@@ -188,6 +188,12 @@ class ProductCore extends ObjectModel
/*** @var array Tags */
public $tags;
/**
* @since 1.5.0
* @var boolean Tells if the product uses the advanced stock management
*/
public $advanced_stock_management;
public $isFullyLoaded = false;
public $cache_is_pack;
@@ -253,6 +259,7 @@ class ProductCore extends ObjectModel
'cache_has_attachments' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'),
'advanced_stock_management' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
// Lang fields
'meta_description' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'size' => 255),