Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dhongu committed May 3, 2024
1 parent 412859d commit 3a70dcb
Show file tree
Hide file tree
Showing 85 changed files with 1,350 additions and 881 deletions.
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ repos:
# args:
# - --addons-dir=.

# - repo: https://github.com/OCA/odoo-pre-commit-hooks
# rev: v0.0.31
# hooks:
# - id: oca-checks-odoo-module
# - id: oca-checks-po
# args: ["--fix"]
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.31
hooks:
- id: oca-checks-odoo-module
- id: oca-checks-po
args: ["--fix"]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
Expand Down Expand Up @@ -122,12 +122,12 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]

# - repo: https://github.com/astral-sh/ruff-pre-commit
# rev: v0.1.3
# hooks:
# - id: ruff
# args: [--fix, --exit-non-zero-on-fix]
# - id: ruff-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/OCA/pylint-odoo
rev: 7.0.2
Expand Down
6 changes: 5 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ fix = true
line-length = 120




[lint]
ignore = ["E501","E741","B905","B023","UP031"]

extend-select = [
"B",
"C90",
Expand All @@ -29,4 +33,4 @@ section-order = ["future", "standard-library", "third-party", "odoo", "odoo-addo
"odoo-addons" = ["odoo.addons"]

[mccabe]
max-complexity = 20
max-complexity = 50
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ addon | version | maintainers | summary | price
[deltatech_average_payment_period](deltatech_average_payment_period/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Computes average duration of cash accounting | Free
[deltatech_backup_attachment](deltatech_backup_attachment/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Backup attachments for selected file type | Free
[deltatech_batch_transfer](deltatech_batch_transfer/) | 17.0.0.0.2 | [![danila12](https://github.com/danila12.png?size=30px)](https://github.com/danila12) | Batch transfer improvements | Free
[deltatech_business_process](deltatech_business_process/) | 17.0.1.1.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Business process | Free
[deltatech_business_process](deltatech_business_process/) | 17.0.1.1.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Business process | Free
[deltatech_card_payment](deltatech_card_payment/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Deltatech Payment Method Card | Free
[deltatech_cash](deltatech_cash/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Cash In / Out | Free
[deltatech_cash_statement](deltatech_cash_statement/) | 17.0.3.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Update cash balance | Free
Expand Down Expand Up @@ -90,7 +90,7 @@ addon | version | maintainers | summary | price
[deltatech_product_trade_markup](deltatech_product_trade_markup/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Product trade markup | Free
[deltatech_property](deltatech_property/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Property Management | Free
[deltatech_purchase_picking_status](deltatech_purchase_picking_status/) | 17.0.1.0.1 | [![danila12](https://github.com/danila12.png?size=30px)](https://github.com/danila12) | Get purchase status from pickings | Free
[deltatech_purchase_price](deltatech_purchase_price/) | 17.0.1.1.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Update vendor price after reception | Free
[deltatech_purchase_price](deltatech_purchase_price/) | 17.0.1.1.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Update vendor price after reception | Free
[deltatech_purchase_refund](deltatech_purchase_refund/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Generare factura storno pentru retururi | 5.0 EUR
[deltatech_purchase_stock](deltatech_purchase_stock/) | 17.0.1.0.2 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Purchase Stock | Free
[deltatech_purchase_xls](deltatech_purchase_xls/) | 17.0.1.0.6 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Import/export purchase line from/to Excel | Free
Expand Down Expand Up @@ -119,15 +119,18 @@ addon | version | maintainers | summary | price
[deltatech_service](deltatech_service/) | 17.0.2.0.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Manage Services Agreement | Free
[deltatech_service_agreement](deltatech_service_agreement/) | 17.0.2.0.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Manage Services Agreement | Free
[deltatech_service_base](deltatech_service_base/) | 17.0.2.0.5 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Manage Services Base | Free
[deltatech_service_consumable](deltatech_service_consumable/) | 17.0.1.1.3 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Consumable | Free
[deltatech_service_equipment](deltatech_service_equipment/) | 17.0.1.1.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Equipment Management | Free
[deltatech_service_equipment_base](deltatech_service_equipment_base/) | 17.0.1.1.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Service Equipment Management | Free
[deltatech_service_maintenance](deltatech_service_maintenance/) | 17.0.1.1.2 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance | Free
[deltatech_service_maintenance_agreement](deltatech_service_maintenance_agreement/) | 17.0.1.0.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance | Free
[deltatech_service_maintenance_plan](deltatech_service_maintenance_plan/) | 17.0.1.0.6 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Services Maintenance Plan | Free
[deltatech_sms](deltatech_sms/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Send SMS to custom endpoint | Free
[deltatech_sms_sale](deltatech_sms_sale/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | send SMS at sale order confirmation | Free
[deltatech_stock_account](deltatech_stock_account/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Stock Account Extension | Free
[deltatech_stock_analytic](deltatech_stock_analytic/) | 17.0.1.0.1 | [![danila12](https://github.com/danila12.png?size=30px)](https://github.com/danila12) | Create analytic lines from stock moves | Free
[deltatech_stock_delivery](deltatech_stock_delivery/) | 17.0.1.0.0 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Adding button in invoice for display reception or delivery | Free
[deltatech_stock_inventory](deltatech_stock_inventory/) | 17.0.2.2.4 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Inventory Old Method | Free
[deltatech_stock_negative](deltatech_stock_negative/) | 17.0.2.0.2 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Negative stocks are not allowed | Free
[deltatech_stock_report](deltatech_stock_report/) | 17.0.1.0.1 | [![dhongu](https://github.com/dhongu.png?size=30px)](https://github.com/dhongu) | Report with positions from picking lists | Free
[deltatech_stock_sn](deltatech_stock_sn/) | 17.0.1.0.0 | | Stock Serial Number | Free
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ def action_undo_reconciliation(self):
if st_line.date < date_limit_obj:
raise UserError(
_(
"You cannot perform this operation on this line (date restriction). Please contact your support team."
"You cannot perform this operation on this line (date restriction). "
"Please contact your support team."
)
)
return super().action_undo_reconciliation()
5 changes: 2 additions & 3 deletions deltatech_business_process/data/ir_sequence_data.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="sequence_project" model="ir.sequence">
<field name="name">Business project</field>
<field name="code">business.project</field>
Expand Down Expand Up @@ -42,5 +41,5 @@
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
</data>

</odoo>
2 changes: 1 addition & 1 deletion deltatech_business_process/views/business_process_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="name">Business process</field>
<field name="model">business.process</field>
<field name="arch" type="xml">
<tree string="Business process" sample="1" default_order="code">
<tree sample="1" default_order="code">
<field name="code" />
<field name="name" />
<field name="project_id" optional="hide" />
Expand Down
2 changes: 1 addition & 1 deletion deltatech_business_process/views/business_project_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<field name="name">Business project</field>
<field name="model">business.project</field>
<field name="arch" type="xml">
<tree string="Business process" sample="1">
<tree sample="1">
<field name="code" />
<field name="name" />
<field name='state' widget="badge" decoration-success="state == 'running' " />
Expand Down
2 changes: 1 addition & 1 deletion deltatech_business_process/views/business_role_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<field name="name">Business role</field>
<field name="model">business.role</field>
<field name="arch" type="xml">
<tree string="Business role">
<tree>
<field name="name" />
</tree>
</field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<field name="name">Business transaction</field>
<field name="model">business.transaction</field>
<field name="arch" type="xml">
<tree string="Business process">
<tree>
<field name="code" />
<field name="name" />
<field name="transaction_type" />
Expand Down
5 changes: 2 additions & 3 deletions deltatech_change_uom/security/sale_security.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="group_change_uom" model="res.groups">
<field name="name">Allow to change unit of measure</field>
<field name="category_id" ref="base.module_category_hidden" />
</record>
</data>

</odoo>
5 changes: 2 additions & 3 deletions deltatech_dc/data/data.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="sequence_dc" model="ir.sequence">
<field name="name">Declaration of Conformity</field>
<field name="prefix">DC/</field>
Expand All @@ -9,5 +8,5 @@
<field name="number_next">1</field>
<field name="number_increment">1</field>
</record>
</data>

</odoo>
5 changes: 2 additions & 3 deletions deltatech_dc/security/security.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="dc_comp_rule" model="ir.rule">
<field name="name">Declaration of Conformity multi-company</field>
<field name="model_id" ref="model_deltatech_dc" />
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field>
</record>
</data>

</odoo>
2 changes: 1 addition & 1 deletion deltatech_dc/views/report_dc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<br />
<br />
<div>F(PP 7.5/4.4.6-01)03</div>
<div class="oe_structure" />

</div>
</t>
</t>
Expand Down
5 changes: 2 additions & 3 deletions deltatech_fleet/data/fleet_data.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">

<record id="type_service_service_fuel" model="fleet.service.type">
<field name="name">Fuel</field>
Expand Down Expand Up @@ -70,5 +69,5 @@
<field name="name">Home</field>
</record>

</data>

</odoo>
Loading

0 comments on commit 3a70dcb

Please sign in to comment.