Commit 3ea78db
committed
[IMP] product: Empty company_id
On v13, there's no default company associated with the template nor the
pricelist, on contrary than on v12. We need to empty the company_id field in
case of having only one company for not having problems later when creating
new pricelists and not being able to select old products due to the
difference on the company_id field (on a pricelist without company, you can
only select templates without company, and vice versa, but not a mix of
both).
We need to empty the company of pricelists as well.
If there are more than one company in the DB, then everything is
preserved as it is.
TT297321 parent 13551c7 commit 3ea78db
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
64 | 89 | | |
65 | 90 | | |
66 | 91 | | |
| |||
69 | 94 | | |
70 | 95 | | |
71 | 96 | | |
| 97 | + | |
0 commit comments