GithubHelp home page GithubHelp logo

openlabs / nereid-catalog Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 13.0 954 KB

NOTE: Active development has moved to:

Home Page: https://github.com/fulfilio/nereid-catalog

License: GNU General Public License v3.0

Python 100.00%

nereid-catalog's Introduction

nereid-catalog

https://travis-ci.org/openlabs/nereid-catalog.png?branch=develop https://coveralls.io/repos/openlabs/nereid-catalog/badge.png?branch=develop

nereid-catalog's People

Contributors

tarunbhardwaj avatar pritishc avatar aroraumang avatar prakashpp avatar prakharbansal avatar kavitanjalisingh avatar mbehrle avatar priyankarani avatar rajatguptarg avatar

Stargazers

Abdurahman Soleh avatar

Watchers

Shalabh Aggarwal avatar James Cloos avatar Rituparna Panda avatar  avatar Christophe avatar  avatar

nereid-catalog's Issues

Crash on non iterable with remote static files

I solved the issue for my use case with the patch below. While the first part (testing for local) should anyway be included, the second part (including unconditionnally all remote files) is questionable.

Best would be to

  • either provide nereid.static.file with a provision to also detect mime encoding on remote files
  • or to enforce mime selection for remote files
diff --git a/product.py b/product.py
index 76e903a..9fd7fc1 100644
--- a/product.py
+++ b/product.py
@@ -456,8 +456,12 @@ class Product:
         """
         product_images = []
         for media in self.media:
-            if 'image' in media.static_file.mimetype:
+            if media.static_file.type == 'local':
+                if 'image' in media.static_file.mimetype:
+                    product_images.append(media.static_file.id)
+            else:
                 product_images.append(media.static_file.id)
+
         return product_images

     def get_images(self):

Unable to get 'list_price' from product template

Hello

When I try to get 'list_price' from product template in method 'render_list' in class Product, but i have always 'None'.
in fact not all the fields of the object product.product are accessible (eg product.template.cost_price_method it's ok but not the field 'product.list_price_uom').
I just installed the latest version (Develop branch) of the module Webshop and all its dependencies and when I try to view the page 'http://localhost:5000/products' I get an error on prices. Did I forgot something?

Regards

Error when open product form

Hello,

The standard module 'stock_product_location' add a field after the field 'description', but you move this field in a page of the notebook.

Regards

Provision to list products on multiple nereid websites

Currently product can either be listed on all websites or None. There should be a provision to list product on some selected websites.

This can be achieved by introducing sale channel in this module in following way:

  1. Add sale.channel as dependency to nereid-catalog.
  2. Add a field called channel in nereid.website and set that in context while initializing nereid app.
  3. Listing of products on website can be managed by channel.listing. channel.listing model will decide if product is listed on website with product-identifier as uri.
  4. Change displayed_on_eshop field to a function field and will respect current channel in context to return True/False
  5. get_absolute_url method should also respect current_channel in context and return URI accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.