Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] product_template_multi_link: Migration to 18.0 #990

Merged
merged 55 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
fddef8a
[ADD] product_temlate_multi_link
legalsylvain Oct 4, 2017
d199fa2
[REF] rename type in link_type
legalsylvain Oct 10, 2017
ce9b602
OCA Transbot updated translations from Transifex
oca-transbot Jun 2, 2018
ba905f2
[UPD] Update product_template_multi_link.pot
oca-travis Sep 5, 2018
c0c53db
[IMP] product_template_multi_link: : black, isort
lmignon Nov 15, 2019
0ce43f8
[MIG] product_template_multi_link: Migration to 13.0
lmignon Nov 15, 2019
0061797
[FIX] pre-commit: xml prettier
lmignon May 15, 2020
b4ac2e5
[UPD] Update product_template_multi_link.pot
oca-travis Jun 11, 2020
4e0b493
[IMP] product_template_multi_link: Makes links bi-directional
lmignon Nov 15, 2019
634afbe
[UPD] Update product_template_multi_link.pot
oca-travis Jun 17, 2020
47dbf6f
product_template_multi_link 13.0.1.1.0
OCA-git-bot Jun 17, 2020
5f97a29
Update translation files
oca-transbot Jun 17, 2020
61e13aa
product_template_multi_link: fix link type data
simahawk Jul 17, 2020
347b074
product_template_multi_link 13.0.1.1.1
OCA-git-bot Jul 17, 2020
1946142
[13.0][IMP] Add form view on product_template_multi_link
TDu Aug 6, 2020
5e2126f
product_template_multi_link 13.0.1.2.0
OCA-git-bot Aug 14, 2020
43d579e
Update translation files
oca-transbot Aug 16, 2020
7bf0aa9
product_template_multi_link: ease overrides on link
simahawk Sep 15, 2020
23db577
Add product_variant_multi_link
simahawk Sep 15, 2020
8168497
Translated using Weblate (Vietnamese)
linhhonblade Sep 29, 2020
e6ac0ca
Translated using Weblate (Dutch)
bosd Dec 15, 2020
fa2c0b4
[MIG] product_template_multi_link: Migration to 14.0
chafique-delli Feb 2, 2021
0d5ad57
[UPD] Update product_template_multi_link.pot
oca-travis Jun 8, 2021
facfc0e
[UPD] README.rst
OCA-git-bot Jun 8, 2021
5005084
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 9, 2021
8b61ee5
p_tmpl_multi_link: add is_link_active to turn on/off links
simahawk Feb 17, 2021
a3046b3
p_tmpl_multi_link: add get_links_by_code to template
simahawk Feb 17, 2021
f54f397
p_tmpl_multi_link: add get_by_code to link type
simahawk Feb 17, 2021
11c5389
p_tmpl_multi_link: fix write w/ no records
simahawk Feb 17, 2021
22a3bfa
[UPD] Update product_template_multi_link.pot
oca-travis Aug 3, 2021
6584182
product_template_multi_link 14.0.1.1.0
OCA-git-bot Aug 3, 2021
290d38e
Update translation files
oca-transbot Aug 3, 2021
f75786f
Translated using Weblate (Spanish (Argentina))
ibuioli Aug 29, 2021
68e40a5
[10.0][ADD] product_tempalte_multi_link: add possibility to link prod…
acsonefho Jul 16, 2020
079aba7
[IMP] product_template_multi_link: Makes links bi-directional
lmignon Nov 15, 2019
50813c4
[10.0][IMP] product_template_multi_link: Add migration scripts
rousseldenis Oct 22, 2020
812591f
[10.0][IMP] product_template_multi_link: Add indexes
rousseldenis Oct 22, 2020
18cf61a
[10.0][IMP] product_template_multi_link: Makes wizard bi-directional
rousseldenis Oct 23, 2020
ae1b08e
[UPD] Update product_template_multi_link.pot
oca-travis Nov 3, 2021
d16f0c9
[UPD] README.rst
OCA-git-bot Nov 3, 2021
a6e3e1b
product_template_multi_link 14.0.1.2.0
OCA-git-bot Nov 3, 2021
90335e3
Update translation files
oca-transbot Nov 3, 2021
964f5b2
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 8, 2021
40c0829
Translated using Weblate (Italian)
francesco-ooops Jul 5, 2022
7ffde1f
[MIG] product_template_multi_link: Migration to 15.0
HviorForgeFlow Oct 6, 2022
2c4ebfb
[16.0][MIG] - product_template_multi_link
sbejaoui Mar 20, 2023
29e1309
[UPD] Update product_template_multi_link.pot
Oct 17, 2023
467fb13
[BOT] post-merge updates
OCA-git-bot Oct 17, 2023
0904094
Translated using Weblate (Spanish)
Ivorra78 Oct 17, 2023
67f5c41
Translated using Weblate (Italian)
mymage Oct 29, 2023
6a23ecc
[IMP] product_template_multi_link: pre-commit auto fixes
May 2, 2024
5c63de5
[MIG] product_template_multi_link: Migration to 17.0
May 2, 2024
b7babd4
oca-port: blacklist PR(s) 800 for product_template_multi_link
thienvh332 Dec 6, 2024
02332b1
[IMP] product_template_multi_link: pre-commit auto fixes
thienvh332 Nov 27, 2024
3ed491e
[MIG] product_template_multi_link: Migration to 18.0
thienvh332 Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
p_tmpl_multi_link: add is_link_active to turn on/off links
  • Loading branch information
simahawk authored and thienvh332 committed Nov 27, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
commit 8b61ee5970c5e15d2d617164ec9ce253e674f1c5
6 changes: 6 additions & 0 deletions product_template_multi_link/models/product_template_link.py
Original file line number Diff line number Diff line change
@@ -36,6 +36,12 @@ class ProductTemplateLink(models.Model):
link_type_inverse_name = fields.Char(
related="type_id.inverse_name"
) # right to left
is_link_active = fields.Boolean(compute="_compute_is_link_active")

def _compute_is_link_active(self):
# Hook here to define your own logic
for record in self:
record.is_link_active = True

@api.constrains("left_product_tmpl_id", "right_product_tmpl_id", "type_id")
def _check_products(self):