Package: odoo10-addon-product-default-image
Default Product ImagesThis module adds default images to products with the ability to map their images to theirCategory’s Image, to a single,Global Product Image, or to both,Global and Category, where global
acts as a backup if the category has no image. You can also disable default images by choosingNo Default Image.UsageThere are a few notable features in this module, see below:Post InstallationAfter installation, all products with no image will be automatically changed
when you change your company’sProduct Image Target(see Stock Configuration Page).
Since the default option isNo Default Image, your product images will remain untouched during installation.When Will Product Images Be Automatically Changed?Product images will automatically change when you changeDefault Product Imagein the stock configuration page.Product images will also be changed if you change the product’s category in the product form. This only applies
if theDefault Product Imageis set toCategory’s ImageorGlobal and Category.Lastly, product images will be automatically changed if you change the image on their category’s image. Again,
only applicable ifDefault Product Imageis set toCategory’s ImageorGlobal and Category.The above rules only apply to your current products that do not have an image. Products that already
have an image when installing this module will be marked ascustomimages. The images on those products will not
change unless you click theApply Default Imagein the product form view.Stock Configuration PageGo toInventoryin the top header.UnderConfiguration, clickSettings.UnderProductsis a field,Default Product Image.No Default Imagedeletes all eligible product images.Global Product Imagesets all eligible product images to theGlobal Product Imagefield that
shows up below.Category’s Imagesets all eligible product images to their category’s image.Global and Categorysets all eligible product images to their category’s image if that category
has an image. Otherwise the image is set to theGlobal Product Image.Eligible refers to products that have Auto Change Image as True, do not have an image, do not have
a custom image, or have a default image already.Product Category Form ViewImage fields have been added to categoriesChanging the category’s image field will also change product images that are tied to that
category. Only applicable ifDefault Product Imageis set toCategory’s ImageorGlobal and CategoryProduct Form ViewGo toInventoryin the top header.UnderInventory Control, clickProducts.Click on a product.In the product form view, you’ll see in the upper left hand corner a new button which saysApply Default Image.
Use this button if you want to change a custom image to a default one, or reset a default image.Go to a product that has a default or no image, and you’ll see a new field under theGeneral Informationtab
calledAuto Change Image. Uncheck this field if you want the image not to change. When uploading a custom image
you don’t have to worry about this field. However if you want to delete a product’s image and keep it from
automatically changing, make sure to uncheckAuto Change Image.All image defaults are also loaded when you create a new product.Known Issues / RoadmapRefactor product.template _change_template_image methodCentralize logic that converts the company product_image_target to the
correct product image_type value (usually in the form of a to_type arg),
accounting for GLOBAL_CATEGORY. Repetitive logic occurs in: product.template
apply_default_image, product.template _onchange_categ_id,
product.template default_get, res.company write, and product.category write methods.After logic is centralized, add a res.company create method overload that auto-populates
product images.Bug TrackerBugs are tracked onGitHub Issues. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.CreditsImagesOdoo Community Association:Icon.Company Default Product Image:Image.ContributorsBrett Wood <bwood@laslabs.com>MaintainerThis module is maintained by the OCA.OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.To contribute to this module, please visithttp://odoo-community.org.