Skip to content

Commit 18b6619

Browse files
committed
chore(build): include build command in task runner and update dependencies
- Add 'build' command to the task runner script - Update XML record reference in demo data for res.groups - Optimize lambda closure in ir_model_fields.py - Reformat SQL query comments in external_sql_tests - Reorder imports in mail_service_users update model
1 parent 52efae8 commit 18b6619

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" ?>
22
<odoo>
3-
<record model="res.groups" id="base_db_anonymization.can_anonymize_records">
3+
<record model="res.groups" id="can_anonymize_records">
44
<field name="users" eval="[(4, ref('base.user_admin'))]" />
55
</record>
66
</odoo>

base_db_anonymization/models/ir_model_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IrModelField(models.Model):
1616
def _compute_anonymize_id(self):
1717
anonymize_ids = self.env["ir.model.fields.anonymize"].search([])
1818
for field in self:
19-
anonymize_id = anonymize_ids.filtered(lambda a: a.field_id.id == field.id)[:1]
19+
anonymize_id = anonymize_ids.filtered(lambda a, fid=field.id: a.field_id.id == fid)[:1]
2020
field.anonymize_id = anonymize_id.id if anonymize_ids else False
2121

2222

external_sql_tests/test_ppg_journal_query.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def mssql_conn():
1818
conn.close()
1919

2020

21-
# columns in PPG Journal "STATUS","Belegnummer","Artikelid","Charge","Seriennummer","Menge","Richtung","Komplett","BzId", "Suchbegriff", "Row_Create_Time"
21+
# columns in PPG Journal "STATUS","Belegnummer","Artikelid","Charge","Seriennummer","Menge",
22+
# "Richtung","Komplett","BzId", "Suchbegriff", "Row_Create_Time"
2223

2324
test_cases = [
2425
(
@@ -235,7 +236,8 @@ def test_ppg_journal_aggregation(mssql_conn, desc, test_rows):
235236
# MAX(Komplett) AS MaxKomplett
236237
# FROM PPG_Journal
237238
# {condition1}
238-
# GROUP BY BzId, Belegnummer, Seriennummer, Charge, Suchbegriff, Richtung, Row_Create_Time, Row_Update_Time
239+
# GROUP BY BzId, Belegnummer, Seriennummer, Charge, Suchbegriff, Richtung,
240+
# Row_Create_Time, Row_Update_Time
239241
# )
240242
# SELECT c.BzId,
241243
# c.Belegnummer,

mail_service_users/models/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import logging
33

44
from odoo import api, models
5+
from odoo.tools import misc
56

67
_logger = logging.getLogger(__name__)
7-
from odoo.tools import misc
88

99

1010
class PublisherWarrantyContract(models.AbstractModel):

task

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ else
156156
install
157157
lint
158158
docs
159+
build
159160
;;
160161
*)
161162
echo "Unknown command: $1"

0 commit comments

Comments
 (0)