Skip to content

Commit

Permalink
Send only the required fields when fetching a readonly view definitio…
Browse files Browse the repository at this point in the history
…n. issue11134. Task #050808
  • Loading branch information
juanjo-nan committed Jan 12, 2024
1 parent 2595879 commit c05024d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions product.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ class CategoryCompany(ModelSQL, CompanyValueMixin):
('sequence_type', '=', Id('stock_lot',
'sequence_type_stock_lot')),
('company', 'in', [Eval('company', -1), None]),
],
depends=['company'])
])

@classmethod
def __register__(cls, module_name):
Expand Down Expand Up @@ -91,8 +90,7 @@ class TemplateCompany(ModelSQL, CompanyValueMixin):
('sequence_type', '=', Id('stock_lot',
'sequence_type_stock_lot')),
('company', 'in', [Eval('company', -1), None]),
],
depends=['company'])
])

@classmethod
def __register__(cls, module_name):
Expand Down

0 comments on commit c05024d

Please sign in to comment.