Skip to content

Commit

Permalink
fix syntax (#174)
Browse files Browse the repository at this point in the history
* fix syntax

* upgrade actions
  • Loading branch information
jans23 authored Jan 28, 2025
1 parent d8edaaa commit 5119203
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 28 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down
3 changes: 1 addition & 2 deletions configure_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import purchase
from . import product_attribute
from . import product_attribute, purchase
4 changes: 1 addition & 3 deletions ecommerce_hide_product/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# See LICENSE file for full copyright and licensing details.
from . import controllers
from . import models
from . import controllers, models
1 change: 0 additions & 1 deletion ecommerce_hide_product/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"depends": ["website_sale"],
"summary": """This module is used to hide products from the shop view""",
"data": ["views/product_view.xml"],
"active": False,
"installable": True,
}
5 changes: 1 addition & 4 deletions ecommerce_hide_product/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# See LICENSE file for full copyright and licensing details.

from . import product
from . import website
from . import product, website
2 changes: 1 addition & 1 deletion mass_mailing_delivery/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="res_partner_view" model="ir.ui.view">
<record id="res_partner_view" model="ir.ui.view">
<field name="name">res.partner.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
Expand Down
3 changes: 1 addition & 2 deletions payment_bitcoin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import controllers
from . import models
from . import controllers, models
14 changes: 8 additions & 6 deletions payment_bitcoin/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from . import bitcoin
from . import payment_acquirer
from . import res_config_settings
from . import account_payment
from . import account_payment_register
from . import payment_transaction
from . import (
account_payment,
account_payment_register,
bitcoin,
payment_acquirer,
payment_transaction,
res_config_settings,
)
3 changes: 1 addition & 2 deletions product_cost_automatic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from odoo import SUPERUSER_ID, api

from . import models
from . import wizard
from . import models, wizard


def _set_is_automatically(cr, registry):
Expand Down
3 changes: 1 addition & 2 deletions stock_tracking_validation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import models
from . import wizard
from . import models, wizard
3 changes: 1 addition & 2 deletions stock_tracking_validation/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import stock_picking
from . import mrp_production
from . import mrp_production, stock_picking

0 comments on commit 5119203

Please sign in to comment.