-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAH-3748 | Added. Multi Invoice in single payment process … (#152)
* [Karthi] | BAH-3748 | Added. Multi Invoice in single payment process module has been enabled. * [Karthi] | BAH-3752 | Refactor. Purchase Order Order deadline fields has been enabled (#153) * [Karthi] | BAH-3750 | Refactor. Balance field should be a non-editable field. (#155) * BAH-3752 | Refactor. Use ordered date for purchase order register (#157) * BAH-3752 | Refactor. Use ordered date for purchase order register date field (#158) * [Rahul] | BAH-3697 | Add. Syncable Units Mapper * Refactor. Bundling of community modules in docker image (#160) * BAH-3748 | Refactor. Module metadata * BAH-3778 | Add, Field for showing invoice total after calculating discount and round off * BAH-3748 | Refactor. Assigning of payments and credit invoices * BAH-3748 | Fix. Map credit notes as credit invoice lines * BAH-3748 | Refactor. Variable naming * BAH-3748 | Add. Reset credit invoice allocations when payment is reset * BAH-3748 | Add. Configurable property for payments customisation feature * BAH-3748 | Fix. Names for Bahmni Custom configurations to allow extensions * BAH-3748 | Refactor.Remove unused files as these are refactored as extensions * BAH-3748 | Refactor. Add all customisations behind configuration * BAH-3748 | Refactor. Re-order function definitions to improve readability * BAH-3748 | Refactor. Model and variable naming to improve readability * BAH-3748 | Add. Bahmni Payments module to Dockerfile * BAH-3748 | Refactor. Fix file formatting * BAH-3748 | Add. Validation for payment amounts * BAH-3748 | Fix. Module path * BAH-3748 | Refactor. Field name for current_outstanding --------- Co-authored-by: MOHANKUMAR T <[email protected]> Co-authored-by: Rahul Ramesh <[email protected]> Co-authored-by: MOHANKUMAR T <[email protected]>
- Loading branch information
1 parent
d503767
commit 7b4fc83
Showing
16 changed files
with
942 additions
and
83 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,61 +1,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
<record id="inherit_invoice_form" model="ir.ui.view"> | ||
<field name="name">inherit.invoice.form</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_move_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='tax_totals']" position="after"> | ||
<field name="amount_untaxed" widget='monetary' options="{'currency_field': 'currency_id'}"/> | ||
<field name="amount_tax" widget='monetary' options="{'currency_field': 'currency_id'}"/> | ||
<field name="discount_type" required="1" attrs="{'invisible': [('amount_untaxed', '=', 0.00)], 'readonly': [('state', '!=', 'draft')]}"/> | ||
<field name="discount_percentage" widget='monetary' options="{'currency_field': 'currency_id'}" attrs="{'readonly': ['|',('state', '!=', 'draft'),('discount_type', '=', 'fixed')],'invisible': [('discount_type', 'in', ('fixed','none'))]}"/> | ||
<field name="discount" widget='monetary' options="{'currency_field': 'currency_id'}" attrs="{'readonly': ['|',('state', '!=', 'draft'),('discount_type', '=', 'percentage')],'invisible': [('discount_type', 'in', ('none'))]}"/> | ||
<field name="disc_acc_id" attrs="{'readonly': [('state', '!=', 'draft')],'required': [('discount', '!=', 0.0)],'invisible': ['|', ('discount_type', '=', 'none'),('discount', '=', 0.0)]}"/> | ||
<field name="round_off_amount" widget='monetary' attrs="{'readonly': [('state', '!=', 'draft')]}" options="{'currency_field': 'currency_id'}"/> | ||
<div class="oe_subtotal_footer_separator oe_inline o_td_label"> | ||
<label for="invoice_total"/> | ||
</div> | ||
<field name="invoice_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="inherit_view_invoice_tree_bahmni" model="ir.ui.view"> | ||
<field name="name">Invoice View Changes</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_invoice_tree"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='name']" position="after"> | ||
<field name="partner_id"/> | ||
</xpath> | ||
<xpath expr="//field[@name='payment_state']" position="before"> | ||
<field name="invoice_total" sum="Total" optional="show"/> | ||
<field name="amount_residual" sum="Total" optional="show"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="account.action_move_out_invoice_type" model="ir.actions.act_window"> | ||
<field name="name">Customer Invoices</field> | ||
<field name="res_model">account.move</field> | ||
<field name="view_mode">tree,kanban,form,pivot,graph</field> | ||
<field eval="False" name="view_id"/> | ||
<field name="domain">[('move_type','in',('out_invoice', 'out_refund'))]</field> | ||
<field name="context">{'move_type':'out_invoice', 'journal_type': 'sale','readonly_by_pass': True}</field> | ||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> | ||
<field name="help" type="html"> | ||
<p class="oe_view_nocontent_create"> | ||
Click to create a customer invoice. | ||
</p> | ||
<p> | ||
Odoo's electronic invoicing allows to ease and fasten the | ||
collection of customer payments. Your customer receives the | ||
invoice by email and he can pay online and/or import it | ||
in his own system. | ||
</p> | ||
<p> | ||
The discussions with your customer are automatically displayed at | ||
the bottom of each invoice. | ||
</p> | ||
</field> | ||
</record> | ||
<record id="inherit_invoice_form" model="ir.ui.view"> | ||
<field name="name">inherit.invoice.form</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_move_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='tax_totals']" position="after"> | ||
<field name="amount_untaxed" widget='monetary' | ||
options="{'currency_field': 'currency_id'}"/> | ||
<field name="amount_tax" widget='monetary' | ||
options="{'currency_field': 'currency_id'}"/> | ||
<field name="discount_type" required="1" | ||
attrs="{'invisible': [('amount_untaxed', '=', 0.00)], 'readonly': [('state', '!=', 'draft')]}"/> | ||
|
||
<field name="discount_percentage" widget='monetary' | ||
options="{'currency_field': 'currency_id'}" | ||
attrs="{'readonly': ['|',('state', '!=', 'draft'),('discount_type', '=', 'fixed')],'invisible': [('discount_type', 'in', ('fixed','none'))]}"/> | ||
|
||
<field name="discount" widget='monetary' | ||
options="{'currency_field': 'currency_id'}" | ||
attrs="{'readonly': ['|',('state', '!=', 'draft'),('discount_type', '=', 'percentage')],'invisible': [('discount_type', 'in', ('none'))]}"/> | ||
|
||
<field name="disc_acc_id" | ||
attrs="{'readonly': [('state', '!=', 'draft')],'required': [('discount', '!=', 0.0)],'invisible': ['|', ('discount_type', '=', 'none'),('discount', '=', 0.0)]}"/> | ||
|
||
<field name="round_off_amount" widget='monetary' attrs="{'readonly': [('state', '!=', 'draft')]}" | ||
options="{'currency_field': 'currency_id'}"/> | ||
|
||
<div class="oe_subtotal_footer_separator oe_inline o_td_label"> | ||
<label for="invoice_total"/> | ||
</div> | ||
<field name="invoice_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' | ||
options="{'currency_field': 'currency_id'}"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="inherit_view_invoice_tree_bahmni" model="ir.ui.view"> | ||
<field name="name">Invoice View Changes</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_invoice_tree"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='name']" position="after"> | ||
<field name="partner_id"/> | ||
</xpath> | ||
<xpath expr="//field[@name='payment_state']" position="before"> | ||
<field name="invoice_total" sum="Total" optional="show"/> | ||
<field name="amount_residual" sum="Total" optional="show"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="account.action_move_out_invoice_type" model="ir.actions.act_window"> | ||
<field name="name">Customer Invoices</field> | ||
<field name="res_model">account.move</field> | ||
<field name="view_mode">tree,kanban,form,pivot,graph</field> | ||
<field eval="False" name="view_id"/> | ||
<field name="domain">[('move_type','in',('out_invoice', 'out_refund'))]</field> | ||
<field name="context">{'move_type':'out_invoice', 'journal_type': 'sale','readonly_by_pass': True}</field> | ||
<field name="search_view_id" ref="account.view_account_invoice_filter"/> | ||
<field name="help" type="html"> | ||
<p class="oe_view_nocontent_create"> | ||
Click to create a customer invoice. | ||
</p> | ||
<p> | ||
Odoo's electronic invoicing allows to ease and fasten the | ||
collection of customer payments. Your customer receives the | ||
invoice by email and he can pay online and/or import it | ||
in his own system. | ||
</p> | ||
<p> | ||
The discussions with your customer are automatically displayed at | ||
the bottom of each invoice. | ||
</p> | ||
</field> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## This module developed by KGISL | ||
|
||
{ | ||
"name": "Bahmni Auto Payment Reconciliation", | ||
"summary": """This module extends the Customer payment functionality to allocate the payment amount automatically across multiple open invoices """, | ||
"author": "Karthikeyan", | ||
"website": "https://www.bahmni.org/", | ||
"category": "Accounting", | ||
"license": "LGPL-3", | ||
"depends": ["account","bahmni_sale"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
'views/account_payment_view_inherit.xml', | ||
'views/res_config_inherit.xml', | ||
'views/account_report.xml', | ||
'report/report_invoice_inherit.xml', | ||
], | ||
"installable": True, | ||
"application": True, | ||
"auto_install": False, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import account_payment | ||
from . import res_config_settings |
Oops, something went wrong.