Standardize merge logic when a handler is defined for it
also adds basic merge support for products view
This commit is contained in:
parent
4c29a667cb
commit
409a49ba20
3 changed files with 39 additions and 28 deletions
|
@ -83,6 +83,7 @@ class ProductView(MasterView):
|
|||
has_versions = True
|
||||
results_downloadable_xlsx = True
|
||||
supports_autocomplete = True
|
||||
mergeable = True
|
||||
configurable = True
|
||||
|
||||
labels = {
|
||||
|
@ -180,6 +181,7 @@ class ProductView(MasterView):
|
|||
|
||||
app = self.get_rattail_app()
|
||||
self.products_handler = app.get_products_handler()
|
||||
self.merge_handler = self.products_handler
|
||||
# TODO: deprecate / remove these
|
||||
self.product_handler = self.products_handler
|
||||
self.handler = self.products_handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue