Skip to content

Commit 2c7643e

Browse files
committed
3860-upd-dotfiles
1 parent 33a64f2 commit 2c7643e

File tree

334 files changed

+949
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+949
-279
lines changed

.copier-answers.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.14.1
2+
_commit: v1.19.2
33
_src_path: https://github.com/OCA/oca-addons-repo-template.git
44
ci: GitHub
5-
dependency_installation_mode: PIP
5+
convert_readme_fragments_to_markdown: true
66
generate_requirements_txt: true
77
github_check_license: true
88
github_ci_extra_env: {}
9-
github_enable_codecov: true
9+
github_enable_codecov: false
1010
github_enable_makepot: false
11-
github_enable_stale_action: true
12-
github_enforce_dev_status_compatibility: true
11+
github_enable_stale_action: false
12+
github_enforce_dev_status_compatibility: false
1313
include_wkhtmltopdf: false
14+
odoo_test_flavor: OCB
1415
odoo_version: 10.0
1516
org_name: Quartile Limited
1617
org_slug: qrtl
1718
rebel_module_groups: []
18-
repo_description: PCI Custom
19-
repo_name: null
19+
repo_description: ''
20+
repo_name: PCI Custom
2021
repo_slug: pci-custom
2122
repo_website: https://www.quartile.co
22-
travis_apt_packages: []
23-
travis_apt_sources: []
2423

.github/workflows/pre-commit.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v2
1818
with:
1919
python-version: "2.7"
@@ -27,6 +27,15 @@ jobs:
2727
run: pip install pre-commit
2828
- name: Run pre-commit
2929
run: pre-commit run --all-files --show-diff-on-failure --color=always
30+
env:
31+
# Consider valid a PR that changes README fragments but doesn't
32+
# change the README.rst file itself. It's not really a problem
33+
# because the bot will update it anyway after merge. This way, we
34+
# lower the barrier for functional contributors that want to fix the
35+
# readme fragments, while still letting developers get README
36+
# auto-generated (which also helps functionals when using runboat).
37+
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
38+
SKIP: oca-gen-addon-readme
3039
- name: Check that all files generated by pre-commit are in git
3140
run: |
3241
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# runs-on: ubuntu-latest
1515
# name: Detect unreleased dependencies
1616
# steps:
17-
# - uses: actions/checkout@v2
17+
# - uses: actions/checkout@v3
1818
# - run: |
1919
# for reqfile in requirements.txt test-requirements.txt ; do
2020
# if [ -f ${reqfile} ] ; then
@@ -37,6 +37,7 @@ jobs:
3737
include:
3838
- container: ghcr.io/oca/oca-ci/py2.7-ocb10.0:latest
3939
name: test with OCB
40+
makepot: "false"
4041
services:
4142
postgres:
4243
image: postgres:9.6
@@ -47,7 +48,7 @@ jobs:
4748
ports:
4849
- 5432:5432
4950
steps:
50-
- uses: actions/checkout@v2
51+
- uses: actions/checkout@v3
5152
with:
5253
persist-credentials: false
5354
- name: Install addons and dependencies
@@ -56,11 +57,11 @@ jobs:
5657
run: manifestoo -d . check-licenses
5758
- name: Check development status
5859
run: manifestoo -d . check-dev-status --default-dev-status=Beta
60+
continue-on-error: true
5961
- name: Initialize test db
6062
run: oca_init_test_database
6163
- name: Run tests
6264
run: oca_run_tests
63-
- uses: codecov/codecov-action@v1
6465
- name: Update .pot files
6566
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
6667
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'qrtl' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ __pycache__/
33
*.py[cod]
44
/.venv
55
/.pytest_cache
6+
/.ruff_cache
67

78
# C extensions
89
*.so

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude: |
1515
# You don't usually want a bot to modify your legal texts
1616
(LICENSE.*|COPYING.*)
1717
default_language_version:
18-
python: python3
18+
python: python3.8
1919
repos:
2020
- repo: https://github.com/oca/maintainer-tools
2121
rev: ab1d7f6

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
<!-- /!\ do not modify above this line -->
99

10-
# None
10+
# PCI Custom
11+
1112

12-
PCI Custom
1313

1414
<!-- /!\ do not modify below this line -->
1515

abstract_report_xlsx/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"summary": "",
99
"version": "10.0.1.0.0",
1010
"category": "Reporting",
11-
"website": "https://www.odoo-asia.com/",
11+
"website": "https://www.quartile.co",
1212
"author": "Quartile Limited",
1313
"license": "AGPL-3",
1414
"installable": True,

account_analytic_default_product_category/__manifest__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
44
{
55
'name': 'Account Analytic Default Product Category',
6-
'summary':"""""",
6+
'summary': """""",
77
'version': '10.0.1.0.0',
88
'category': 'Accounting & Finance',
9-
'description': """
9+
'description': """
1010
* Add 'Analytic Account' to Product Category
11-
* If no corresponding Analytic Defaults, automatically propose Analytic Account of Product Category on Invoice lines
11+
* If no corresponding Analytic Defaults,
12+
* automatically propose Analytic Account of Product Category on Invoice lines
1213
* Do not propose it on Purchase Order lines
1314
""",
14-
'author': 'Rooms For (Hong Kong) Limited T/A OSCG',
15-
'website': 'https://www.odoo-asia.com',
15+
'author': 'Rooms For (Hong Kong) Limited T/A OSCG,Quartile Limited',
16+
'website': 'https://www.quartile.co',
1617
'license': 'LGPL-3',
1718
'depends': [
1819
'account',

account_analytic_default_product_category/models/account_analytic_default.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
class AccountAnalyticDefault(models.Model):
99
_inherit = "account.analytic.default"
1010

11-
1211
@api.model
1312
def account_get(self, product_id=None, partner_id=None, user_id=None,
1413
date=None, company_id=None):

account_bank_statement_adj/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'name': 'Clear move_name when unreconciling bank statement line',
66
'version': '10.0.1.0.0',
77
'author': 'Quartile Limited',
8-
'website': 'https://www.odoo-asia.com',
8+
'website': 'https://www.quartile.co',
99
'category': 'Account',
1010
'license': "LGPL-3",
1111
'description': """

account_bank_statement_adj/models/account_bank_statement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2017 Quartile Limited
33
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
44

5-
from odoo import models, fields, api
5+
from odoo import models, api
66

77

88
class AccountBankStatementLine(models.Model):

account_invoice_line_view/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
""",
1212
"version": "10.0.1.0.0",
1313
"category": "Account",
14-
"website": "https://www.odoo-asia.com/",
14+
"website": "https://www.quartile.co",
1515
"author": "Quartile Limited",
1616
"license": "LGPL-3",
1717
"application": False,

account_invoice_line_view/models/account_invoice_line.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class AccountInoviceLine(models.Model):
6363
string='Customer',
6464
store=True
6565
)
66-
6766

6867
@api.multi
6968
@api.depends('invoice_id.name', 'invoice_id.reference')

account_payment_cancel_adj/models/account_payment.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
# Copyright 2018 Quartile Limited
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

5-
from odoo import api, fields, models
5+
from odoo import api, models
66

77

88
class AccountPayment(models.Model):
99
_inherit = 'account.payment'
1010

11-
1211
@api.multi
1312
def cancel(self):
1413
super(AccountPayment, self).cancel()

account_view_adjust/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
44
{
55
'name': 'Adjustments on Accounting Views',
6-
'summary':"""""",
6+
'summary': """""",
77
'version': '10.0.1.2.0',
88
'category': 'Accounting',
99
'description': """

account_view_adjust/models/account_invoice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
44

55
from odoo.exceptions import UserError
6-
from odoo import models, fields, api, _
6+
from odoo import models, api, _
77

88

99
class AccountInovice(models.Model):

fix_product_attribute_line_name_search/models/product_attribute_line_hook_name_search.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,33 @@
77
from odoo.addons.product.models.product_attribute import ProductAttributeLine
88

99

10-
"""
11-
Odoo's original method completely overrides `args` which disables whatever
12-
domain passed to this method, and therefore is not desiable.
13-
We will fix it by extending args instead of overriding it.
14-
Ref: https://github.com/odoo/odoo/pull/26133
15-
"""
10+
# """
11+
# Odoo's original method completely overrides `args` which disables whatever
12+
# domain passed to this method, and therefore is not desiable.
13+
# We will fix it by extending args instead of overriding it.
14+
# Ref: https://github.com/odoo/odoo/pull/26133
15+
# """
1616
@api.model
1717
def name_search(self, name='', args=None, operator='ilike', limit=100):
1818
# TDE FIXME: currently overriding the domain; however as it includes a
1919
# search on a m2o and one on a m2m, probably this will quickly become
2020
# difficult to compute - check if performance optimization is required
2121
if name and operator in ('=', 'ilike', '=ilike', 'like', '=like'):
22-
#args = ['|', ('attribute_id', operator, name), ('value_ids', operator, name)] # QTL del
22+
# Correctly indented comment block
23+
# args = ['|', ('attribute_id', operator, name),
24+
# ('value_ids', operator, name)]
25+
# QTL del
2326
args = args or [] # QTL add
24-
domain = ['|', ('attribute_id', operator, name), ('value_ids', operator, name)] # QTL add
25-
return self.search(expression.AND([domain, args]), limit=limit).name_get() # QTL add
26-
return super(ProductAttributeLine, self).name_search(name=name, args=args, operator=operator, limit=limit)
27+
domain = [
28+
'|',
29+
('attribute_id', operator, name),
30+
('value_ids', operator, name)
31+
] # QTL add
32+
search_result = self.search(expression.AND([domain, args]), limit=limit)
33+
return search_result.name_get() # QTL add
34+
return super(ProductAttributeLine, self).name_search(
35+
name=name, args=args, operator=operator, limit=limit
36+
)
2737

2838

2939
class ProductAttributeLineHookNameSearch(models.AbstractModel):

mail_force_email/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'name': 'Email Template with Force Sending',
66
'version': '10.0.1.0.0',
77
'author': 'Quartile Limited',
8-
'website': 'https://www.odoo-asia.com',
8+
'website': 'https://www.quartile.co',
99
'category': 'Mail',
1010
'license': "LGPL-3",
1111
'description': """

mail_force_email/models/res_partner.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,33 @@ class Partner(models.Model):
1212
# if force_email is enabled in used template, send email to partner
1313
# regardless of partner's notify_email setting
1414
@api.multi
15-
def _notify(self, message, force_send=False, send_after_commit=True, user_signature=True):
15+
def _notify(self,
16+
message,
17+
force_send=False,
18+
send_after_commit=True,
19+
user_signature=True):
1620
message_sudo = message.sudo()
17-
email_channels = message.channel_ids.filtered(lambda channel: channel.email_send)
21+
email_channels = message.channel_ids.filtered(
22+
lambda channel: channel.email_send
23+
)
1824
# adjust start (QTL)
1925
domain = [
2026
'|',
2127
('id', 'in', self.ids),
2228
('channel_ids', 'in', email_channels.ids),
23-
('email', '!=', message_sudo.author_id and message_sudo.author_id.email or message.email_from)
29+
('email', '!=',
30+
message_sudo.author_id
31+
and message_sudo.author_id.email
32+
or message.email_from)
2433
]
2534
layout = self._context.get('custom_layout', False)
2635
if not (layout and self.env.ref(layout).force_email):
2736
domain.append(('notify_email', '!=', 'none'))
28-
self.sudo().search(domain)._notify_by_email(message, force_send=force_send,
29-
send_after_commit=send_after_commit,
30-
user_signature=user_signature)
37+
self.sudo().search(domain)._notify_by_email(
38+
message, force_send=force_send,
39+
send_after_commit=send_after_commit,
40+
user_signature=user_signature
41+
)
3142
# adjust end (QTL)
3243
self._notify_by_chat(message)
3344
return True

mrp_block_inventory_post/models/mrp_production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class MrpProduction(models.Model):
1313
def post_inventory(self):
1414
for order in self:
1515
if order.move_raw_ids.filtered(
16-
lambda x: x.state not in ['assigned', 'done', 'cancel']):
16+
lambda x: x.state not in ['assigned', 'done', 'cancel']):
1717
raise UserError(_(
1818
"Please make sure that stock is reserved for all "
1919
"components before posting inventory."

mrp_bom_component_menu/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"name": "MRP BOM Component Menu",
77
"version": "10.0.1.0.0",
88
"category": "Manufacturing",
9-
"website": "https://github.com/OCA/manufacture",
10-
"author": "Eficent,"
9+
"website": "https://www.quartile.co",
10+
"author": "Eficent,Quartile Limited,"
1111
"Odoo Community Association (OCA)",
1212
"license": "AGPL-3",
1313
"installable": True,

mrp_change_source_location/models/mrp_production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2018 Quartile Limited
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

5-
from odoo import models, fields, api
5+
from odoo import models
66

77

88
class MrpProduction(models.Model):

mrp_change_source_location/wizard/change_source_location_wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright 2018 Quartile Limited
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
44

5-
from odoo import models, fields, api
5+
from odoo import models, fields
66

77

88
class ChangeSourceLocationWizard(models.TransientModel):

mrp_default_location/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
""",
99
"version": "10.0.1.0.0",
1010
"category": "Manufacturing",
11-
"website": "https://www.odoo-asia.com/",
11+
"website": "https://www.quartile.co",
1212
"author": "Quartile Limited",
1313
"license": "LGPL-3",
1414
"installable": True,

mrp_specsheet_py3o/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'version': '10.0.1.0.1',
88
'category': 'Manufacturing',
99
'license': 'AGPL-3',
10+
'website': 'https://www.quartile.co',
1011
'summary': 'py3o spec sheet report',
1112
'description': """
1213
Spec Sheet Report Py3o

payment_paypal_multiwebsite_support/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'name': 'Extend PayPal Acquirer to support multi-website',
66
'version': '10.0.1.0.0',
77
'author': 'Quartile Limited',
8-
'website': 'https://www.odoo-asia.com',
8+
'website': 'https://www.quartile.co',
99
'category': 'Accounting',
1010
'license': "AGPL-3",
1111
'description': """

0 commit comments

Comments
 (0)