openlabs / nereid-catalog Goto Github PK
View Code? Open in Web Editor NEWNOTE: Active development has moved to:
Home Page: https://github.com/fulfilio/nereid-catalog
License: GNU General Public License v3.0
NOTE: Active development has moved to:
Home Page: https://github.com/fulfilio/nereid-catalog
License: GNU General Public License v3.0
There is a bug, when you click on browse nodes.
While creating a browse node without a parent the system throws You cannot create recursive browse nodes!
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
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):
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
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
Calling of Update URI button is not allowed on browse nodes.
Add the button to _buttons.update() in setup.py
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:
channel
in nereid.website
and set that in context while initializing nereid app.channel.listing
. channel.listing
model will decide if product is listed on website with product-identifier
as uri
.displayed_on_eshop
field to a function field
and will respect current channel
in context to return True/Falseget_absolute_url
method should also respect current_channel in context and return URI accordingly.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.