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

[15.0][MIG] product_operating_unit: Migration to 15.0 #492

Open
wants to merge 25 commits into
base: 15.0
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
49265e2
New module product_operating_unit to introduce the operating unit to …
Mar 28, 2019
88a75dc
[ADD] Added a product_operating_unit v12
nikul-serpentcs Dec 30, 2019
04c879d
[FIX] Uncomment rule
nikul-serpentcs Jan 20, 2020
d36df77
[FIX] Default Get + Show OU on Small Form
osi-scampbell Jan 30, 2020
0c27b45
[IMP] Create Product Access Error
osi-scampbell Feb 11, 2020
d21da80
Update product_operating_unit/views/product_template_view.xml
nikul-serpentcs Mar 25, 2020
bc3e964
[IMP] Improved code
murtuzasaleh Apr 20, 2020
2209144
New module product_operating_unit to introduce the operating unit to …
Mar 28, 2019
7b6b5aa
[ADD] Added a product_operating_unit v12
nikul-serpentcs Dec 30, 2019
0acca41
[FIX] Uncomment rule
nikul-serpentcs Jan 20, 2020
29f7c46
[FIX] Default Get + Show OU on Small Form
osi-scampbell Jan 30, 2020
4fbe281
[IMP] Create Product Access Error
osi-scampbell Feb 11, 2020
34cc635
[IMP] Improved code
murtuzasaleh Apr 20, 2020
234d05b
[IMP] product_operating_unit
max3903 Apr 21, 2020
dfb129f
[UPD] Update product_operating_unit.pot README.rst
OCA-git-bot Apr 27, 2020
316ca4b
Added translation using Weblate (Portuguese)
pedrocs-exo Mar 2, 2021
7bda263
[IMP] product_operating_unit: black, isort, prettier
jesus01x Jul 5, 2021
3239a08
[MIG] product_operating_unit: Migration to 14.0
jesus01x Jul 5, 2021
eb518ee
[UPD] README.rst Update product_operating_unit.pot
oca-travis Aug 12, 2021
5ad0c24
[FIX] Fixed OU constrains with product
nikul-serpentcs Oct 27, 2021
00928b1
product_operating_unit 14.0.1.0.1
OCA-git-bot Oct 29, 2021
503ab8e
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
b3bd265
[IMP] product_operating_unit: black, isort, prettier
BT-pcavero Aug 1, 2022
7bb89e5
[15.0][MIG] product_operating_unit: Migration to 15.0
BT-pcavero Aug 1, 2022
53dc471
[15.0][IMP] product_operating_unit.
BT-pcavero Nov 20, 2023
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
[FIX] Fixed OU constrains with product
  • Loading branch information
nikul-serpentcs authored and BT-pcavero committed Aug 1, 2022
commit 5ad0c246ba1536bc12420604af8fb293540402d5
4 changes: 3 additions & 1 deletion product_operating_unit/models/product_template.py
Original file line number Diff line number Diff line change
@@ -38,7 +38,9 @@ def _default_operating_unit_ids(self):
@api.constrains("operating_unit_ids", "categ_id")
def _check_operating_unit(self):
for record in self:
if record.categ_id.operating_unit_ids and not all(
if (
record.operating_unit_ids and record.categ_id.operating_unit_ids
) and not all(
ou in record.operating_unit_ids.ids
for ou in record.categ_id.operating_unit_ids.ids
):