-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify XML structures and update module version.
Refactored XML files by removing unnecessary `<data>` tags and redundant attributes to improve code readability. Updated the version in `__manifest__.py` from 17.0.2.0.0 to 17.0.2.0.1 to reflect these changes. Minor updates were also made to tree view definitions for consistency.
- Loading branch information
Showing
6 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<odoo noupdate="1"> | ||
<record id="sequence_expenses_deduction" model="ir.sequence"> | ||
<field name="name">Expenses Deduction</field> | ||
<field name="prefix">DEC/</field> | ||
<field name="padding">5</field> | ||
<field name="number_next">1</field> | ||
<field name="number_increment">1</field> | ||
</record> | ||
</data> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> | ||
<record id="expenses_deduction_comp_rule" model="ir.rule"> | ||
<field name="name">ExpensesDeduction multi-company</field> | ||
<field name="model_id" ref="model_deltatech_expenses_deduction" /> | ||
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
<record id="expenses_deduction_comp_rule" model="ir.rule"> | ||
<field name="name">ExpensesDeduction multi-company</field> | ||
<field name="model_id" ref="model_deltatech_expenses_deduction" /> | ||
<field name="domain_force">['|',('company_id','=',False),('company_id', 'in', company_ids)]</field> | ||
</record> | ||
|
||
</odoo> |
18 changes: 9 additions & 9 deletions
18
deltatech_expenses/views/deltatech_expenses_deduction_report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?xml version="1.0" ?> | ||
<odoo> | ||
|
||
<record id="action_report_deltatech_expenses_deduction" model="ir.actions.report"> | ||
<field name="name">Print Expenses Deduction</field> | ||
<field name="model">deltatech.expenses.deduction</field> | ||
<field name="report_type">qweb-pdf</field> | ||
<field name="report_name">deltatech_expenses.report_deltatech_expenses_deduction</field> | ||
<field name="report_file">deltatech_expenses.report_deltatech_expenses_deduction</field> | ||
<field name="binding_type">report</field> | ||
<field name="binding_model_id" ref="model_deltatech_expenses_deduction" /> | ||
</record> | ||
<record id="action_report_deltatech_expenses_deduction" model="ir.actions.report"> | ||
<field name="name">Print Expenses Deduction</field> | ||
<field name="model">deltatech.expenses.deduction</field> | ||
<field name="report_type">qweb-pdf</field> | ||
<field name="report_name">deltatech_expenses.report_deltatech_expenses_deduction</field> | ||
<field name="report_file">deltatech_expenses.report_deltatech_expenses_deduction</field> | ||
<field name="binding_type">report</field> | ||
<field name="binding_model_id" ref="model_deltatech_expenses_deduction" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters