Standardize merge logic when a handler is defined for it

also adds basic merge support for products view
This commit is contained in:
Lance Edgar 2022-08-12 14:27:26 -05:00
parent 4c29a667cb
commit 409a49ba20
3 changed files with 39 additions and 28 deletions

View file

@ -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