[IMP] *: Remove todos we won't do

closes odoo/odoo#134836

Related: odoo/enterprise#47144
Related: odoo/upgrade#5129
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2023-09-12 17:16:23 +00:00
parent fb29d7623c
commit c2ebe70ed4
4 changed files with 0 additions and 10 deletions
@@ -148,8 +148,6 @@ class HrContract(models.Model):
# Other calendars: In case the employee has declared time off in another calendar
# Example: Take a time off, then a credit time.
# YTI TODO: This mimics the behavior of _leave_intervals_batch, while waiting to be cleaned
# in master.
resources_list = [self.env['resource.resource'], resource]
result = defaultdict(lambda: [])
for leave in itertools.chain(leaves_by_resource[False], leaves_by_resource[resource.id]):
@@ -1389,7 +1389,6 @@ class ProductTemplate(models.Model):
def _get_contextual_price(self, product=None):
self.ensure_one()
# YTI TODO: During website_sale cleaning, we should get rid of those crappy context thing
pricelist = self._get_contextual_pricelist()
quantity = self.env.context.get('quantity', 1.0)
uom = self.env['uom.uom'].browse(self.env.context.get('uom'))
@@ -18,12 +18,6 @@ class TestWebsiteSaleComparison(odoo.tests.TransactionCase):
`_remove_copied_views`. The problematic view that has to be removed is
`product_attributes_body` because it has a reference to `add_to_compare`.
"""
# YTI TODO: Adapt this tour without demo data
# I still didn't figure why, but this test freezes on runbot
# without the demo data
if tools.config["without_demo"]:
return
Website0 = self.env['website'].with_context(website_id=None)
Website1 = self.env['website'].with_context(website_id=1)
-1
View File
@@ -91,7 +91,6 @@ class TransactionCaseWithUserDemo(TransactionCase):
if not cls.user_demo:
cls.env['ir.config_parameter'].sudo().set_param('auth_password_policy.minlength', 4)
# YTI TODO: This could be factorized between the different classes
cls.partner_demo = cls.env['res.partner'].create({
'name': 'Marc Demo',
'email': 'mark.brown23@example.com',