1b.app
Link copied -

Deleting Product Passports Bypassing Checks

Hello.
Can you please tell me how to delete product passports in bulk and one by one, while bypassing product/project link checks?
We got used to the old scheme, when there were no checks. Now we are faced with a lot of inconvenience in cases of changes in the passport database - when trying to delete a passport, an error pops up indicating the task in which the passport participates. Very often these are already remote tasks (or dozens of remote tasks). This, by the way, is another mystery: why can a remote product / task dictate conditions in the system?
The forum found questions / discussions on the topic, but they did not contain a complete list of actions.
Original question is available on version: ru

Answers:

Good afternoon. Please give a link to the passport, which throws errors on remote processes when deleting the passport, I will remove this error for the remote process.
25.05.2021, 11:39
Original comment available on version: ru

Let's say this one: https://zavod.crm-onebox.com/admin/shop/storage/passport/3324/edit/
This is just a test product, blank. But with real ones, it's easy to recreate the bug:
1. Create a product passport
2. We launch some bp, where the specified product appears in the table of products
3. Delete the bp (the product is still hanging in the product table)
4. We go to the passports and try to delete the product passport - an error pops up
In this case, it is enough to go to the bp that will be indicated in the error and delete the product from the table (you don’t even need to save / restore the deleted bp) and the passport can be deleted.
25.05.2021, 12:14
Original comment available on version: ru

Made the checks not take into account remote processes. You can try deleting the process and then deleting the passport
25.05.2021, 12:25
Original comment available on version: ru

It works, thanks. But this is only part of the problem - in cases where the product appears in open tasks, it will not work to remove the passport, although it was possible before.
Actually, this was the question - how to remove the check for a passport anywhere? So that when deleting, the system does not look anywhere and calmly allows you to delete the passport.
25.05.2021, 13:50
Original comment available on version: ru


Zarubin Kirill wrote:
It works, thanks. But this is only part of the problem - in cases where the product appears in open tasks, it will not work to remove the passport, although it was possible before.
Actually, this was the question - how to remove the check for a passport anywhere? So that when deleting, the system does not look anywhere and calmly allows you to delete the passport.

no way. Why do you want to remove the passport that is involved in the process? Remove the passport from the process in which he participates and then do whatever you want with him. By deleting a passport that is selected in some process, you disrupt the system.
25.05.2021, 13:52
Original comment available on version: ru

We want to be able to delete in this way because a certain work was built on this earlier.
As for the system's operability, possible distortions with such a removal were not a problem - our production processes are now evolving and are often changed / rewritten, like passports / products. Basic information is stored separately and does not suffer as a result of purges.
It turns out that now there is no such possibility?
25.05.2021, 14:05
Original comment available on version: ru

it turns out that yes, and you need to evolve the processes along with the cleaning of passports in these processes
25.05.2021, 14:08
Original comment available on version: ru

It's clear. Then the question is settled for now.
Thank you very much for your help and answers.
25.05.2021, 14:15
Original comment available on version: ru

Please contact me - I'll be happy to help.
25.05.2021, 14:20
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment