File tree Expand file tree Collapse file tree
stock/migrations/13.0.1.1
website/migrations/13.0.1.0 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ jobs:
1515 - name : Set up Python
1616 uses : actions/setup-python@v5
1717 with :
18- python-version : 3.7
18+ python-version : 3.8
1919 - uses : actions/checkout@v4
2020 - name : Configuration
21- run : pip install flake8==3.4 .1
21+ run : pip install flake8==4.0 .1
2222 - name : Flake8 Script
2323 run : |
2424 flake8 odoo/openupgrade --max-line-length=120
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
195195 return
196196
197197 env .cr .execute (
198- f """
198+ """
199199 SELECT distinct rp.id,
200200 rp.name,
201201 rp.company_id,
@@ -225,7 +225,7 @@ def map_stock_picking_responsible_responsible_id_to_user_id(env):
225225 # map responsible_id to user_id
226226 openupgrade .logged_query (
227227 env .cr ,
228- f """
228+ """
229229 WITH partner_user AS (
230230 SELECT sp.id AS picking_id,
231231 rp.id AS partner_id,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def _set_data_anchor_xml_attribute(env):
4848 )
4949 for view in website_views :
5050 doc = fromstring (view .arch_db )
51- links = doc .cssselect ("a[href^=\#]:not([href=\#])" )
51+ links = doc .cssselect (r "a[href^=\#]:not([href=\#])" )
5252 if links :
5353 replacement = {
5454 "selector" : ", " .join ([link .attrib ["href" ] for link in links ]),
You can’t perform that action at this time.
0 commit comments