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

[FIX] removing redefinition of datetime module #284

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

jiaulislam
Copy link

Currently at version 16.0.1.0.0 in the model/crm_dashboard.py datetime module is getting import 2 times.

Before:

import datetime
import calendar

from odoo import models, fields, api
from odoo.tools import date_utils
from odoo.http import request

from dateutil.relativedelta import relativedelta
from datetime import datetime

After:

import calendar

from odoo import models, fields, api
from odoo.tools import date_utils
from odoo.http import request

from dateutil.relativedelta import relativedelta
from datetime import datetime

Removing the duplicate `import datetime` while already importing with aliash `from` import.
@jiaulislam
Copy link
Author

@CybroOdoo Could you please look into the PR?

@jiaulislam jiaulislam changed the title 🔨 removing redefinition of datetime module [FIX] removing redefinition of datetime module Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant