mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[MIG] account_mass_reconcile_by_purchase_line: Migration to 12.0
This commit is contained in:
@@ -125,20 +125,27 @@ class TestScenarioReconcile(common.SavepointCase):
|
||||
"reconcile_method": [(0, 0, {"name": "mass.reconcile.simple.partner"})],
|
||||
}
|
||||
)
|
||||
# call the automatic reconcilation method
|
||||
# call the automatic reconciliation method
|
||||
mass_rec.run_reconcile()
|
||||
invoice.invalidate_cache()
|
||||
self.assertEqual("paid", invoice.invoice_payment_state)
|
||||
|
||||
def test_scenario_reconcile_currency(self):
|
||||
# create currency rate
|
||||
self.env["res.currency.rate"].create(
|
||||
{
|
||||
"name": fields.Date.today().strftime("%Y-%m-%d") + " 00:00:00",
|
||||
"currency_id": self.ref("base.USD"),
|
||||
"rate": 1.5,
|
||||
}
|
||||
currency_rate = self.env['res.currency.rate'].sudo().search(
|
||||
[('currency_id', '=', self.ref('base.USD')),
|
||||
('company_id', '=', self.ref('base.main_company'))]).filtered(
|
||||
lambda r: r.name == fields.Date.today()
|
||||
)
|
||||
if not currency_rate:
|
||||
# create currency rate
|
||||
self.env['res.currency.rate'].create({
|
||||
'name': fields.Date.today(),
|
||||
'currency_id': self.ref('base.USD'),
|
||||
'rate': 1.5,
|
||||
})
|
||||
else:
|
||||
currency_rate = fields.first(currency_rate)
|
||||
currency_rate.rate = 1.5
|
||||
# create invoice
|
||||
invoice = self.invoice_obj.with_context(default_type="out_invoice").create(
|
||||
{
|
||||
|
||||
@@ -17,14 +17,14 @@ Usage
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
* Go to 'Accounting / Adviser / Mass Automatic Reconcile'.
|
||||
* Go to 'Invoicing / Accounting / Actions / Mass Automatic Reconcile'.
|
||||
|
||||
* Create a new reconciliation profile, and select a new configuration entry
|
||||
with type 'Advanced. Product, purchase order line'.
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/98/11.0
|
||||
:target: https://runbot.odoo-community.org/runbot/98/12.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
@@ -32,7 +32,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/bank-statement-reconcile/issues>`_. In case of trouble, please
|
||||
check there if your issue has already been reported. If you spotted it first,
|
||||
help us smashing it by providing a detailed and welcomed feedback.
|
||||
help us smash it by providing detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
{
|
||||
"name": "Account Mass Reconcile by Purchase Line",
|
||||
"summary": "Allows to reconcile based on the PO line",
|
||||
"version": "11.0.1.0.0",
|
||||
"version": "12.0.1.0.0",
|
||||
"author": "Eficent, "
|
||||
"Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/bank-statement-reconcile",
|
||||
"website": "https://github.com/OCA/account-reconcile",
|
||||
"category": "Finance",
|
||||
"depends": ["account_mass_reconcile",
|
||||
"account_move_line_purchase_info"
|
||||
"account_move_line_purchase_info",
|
||||
],
|
||||
"license": "AGPL-3",
|
||||
"data": [
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
* Jordi Ballester Alomar <jordi.ballester@eficent.com>
|
||||
* Miquel Raïch <miquel.raich@eficent.com>
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
@@ -0,0 +1,5 @@
|
||||
This module extends the functionality of account_mass_reconcile and
|
||||
allow an user to reconcile debits and credits of an Account
|
||||
using the PO Line and Product as key fields. This type of
|
||||
reconciliation is to be used in the context of the Perpetual Inventory
|
||||
accounting system, with the accrual account '*Goods Received Not Invoiced*'.
|
||||
6
account_mass_reconcile_by_purchase_line/readme/USAGE.rst
Normal file
6
account_mass_reconcile_by_purchase_line/readme/USAGE.rst
Normal file
@@ -0,0 +1,6 @@
|
||||
To use this module, you need to:
|
||||
|
||||
* Go to 'Invoicing / Accounting / Actions / Mass Automatic Reconcile'.
|
||||
|
||||
* Create a new reconciliation profile, and select a new configuration entry
|
||||
with type 'Advanced. Product, purchase order line'.
|
||||
@@ -9,7 +9,7 @@
|
||||
<page name="information" position="inside">
|
||||
<group colspan="2" col="2">
|
||||
<separator colspan="4" string="Advanced. Purchase Order Line"/>
|
||||
<label string="Match multiple debit vs multiple credit entries. Allow partial reconciliation.
|
||||
<label for="reconcile_method" string="Match multiple debit vs multiple credit entries. Allow partial reconciliation.
|
||||
The lines should have the same partner, product and PO lines to be reconciled." colspan="4"/>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user