Commit Graph
14831 Commits
Author SHA1 Message Date
Cedric Snauwaert b0ddc0fda1 [FIX] account: fix css of pencil to edit tax on vendor bill
Before when creating a vendor bill with a tax 15% and a price unit less than 87, the widget to edit the tax amount was wrongly displayed, the pencil and amount was broken into two lines. This fixes this behavior by ensuring that the all block stays together using the css property white-space: nowrap

closes odoo/odoo#37049

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-18 08:09:38 +00:00
Samuel Degueldre 2b22c2c888 [FIX] account: set default journal_id on email alias entries
PURPOSE:

Journal entries created through an email alias should go in that
journal.

linked to task-2067097

closes odoo/odoo#36836

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-13 08:51:57 +00:00
Cedric Snauwaert 35cbb430ce [FIX] account: fix focus problem in manual reconciliation
Previously when opening the manual reconciliation widget with several lines, trying to put the focus on another line by clicking on the grey line was not working due to a o_field_widget with the partner name taking all the line and there is an event on that o_field_widget that stop the propagation of the event.
Also changing the partner value was only changing the value in the grey zone and not in the other field.
Therefore as it was strange to have twice the name of the partner display one above another and that it was causing problem for the focus of the widget. We removed the name of the partner that was readonly (leaving the editable field where we can change it) and we replaced it with the name of the account which makes more sense.

closes odoo/odoo#36881

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-16 14:36:02 +00:00
oco-odoo 1bc4c1697f [IMP] account: rename the button opening the accrual widget, for usability
closes odoo/odoo#36931

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 11:21:01 +00:00
wan e022d94f10 [IMP] account: hide empty source document
If we don't want the user to write in invoice_origin, then we should hide it when empty. It's weird to show an empty field that no one can edit.

closes odoo/odoo#36923

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 10:30:21 +00:00
Juan Jose Scarafia 707af7555a [FIX] account: fix link between tax and accounts on chart install
Formally, when I try to install a chart of account that have parents the new expenses/income accounts created don't have the proper taxes linked.
This is case was because the expense/income accounts where created on the parent chart and the taxes on the last chart being installed.

With this modification we fix that and we improve the way it's done by:
1. Doing it only once when all the accounts has been created.
2. We don't write into the account.account.template on each iteration, we just write onto accounts that is where we need it to be done
2019-09-13 15:22:12 +00:00
wan a70aed9fbe [FIX] account: concurency in reconciliation at blur proposition
The function _blurProposition returned a promise that was causing
concurency in the function quickCreateProposition. The _computeLine from
_blurProposition was erasing the value of reconciliation_proposition
created in quickCreateProposition.
However, the _blurProposition was didn't need to call _computeLine as it
was called later.

closes odoo/odoo#36904

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-16 08:15:54 +00:00
oco-odoo 3162fb7f2f [IMP] account: don't display "preview" button on bills
closes odoo/odoo#36876

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-13 13:56:50 +00:00
oco-odoo 610e558dfb [IMP] account: bank statement form: add optional field "account number" in statement lines' tree view 2019-09-09 13:29:06 +00:00
oco-odoo e5e9a9c9aa [IMP] account: always display company_id field in invoice form when in multi companies 2019-09-09 12:57:31 +00:00
Odoo Translation Bot e80b81dca1 [I18N] Update translation terms from Transifex 2019-09-15 01:30:37 +02:00
Martin Trigaux 73e70673e7 [I18N] *: export saas-12.5 source terms
closes odoo/odoo#36853

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-13 11:38:37 +00:00
Martin Trigaux 5afcc9a42d [FIX] *: typos, wording 2019-09-13 11:15:43 +00:00
Christophe Simonis 5a273e74f0 [MERGE] forward port branch saas-12.4 up to fe59754c52
closes odoo/odoo#36721

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-13 13:32:51 +00:00
wan 8d7837c035 [FIX] account: removing a line produced by a model
If a line was produced by a reconciliaion model, it shouldn't be put back
in the reconciliation propositions because a rpc request would not give
it back. Also, the line is not correctly formatted.

closes odoo/odoo#36826

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-13 08:57:17 +00:00
wan afb352cf8b [FIX] account: focus and click concurency in reconciliation widget
When trying to edit the amount of a proposition of an inactive
statement, the focus of the line tried and the edition of the amount
were racing one against each other causeing flickering and making it
hard to edit the line.
We removed the focus as it was intended for the keyboard navigation but
it was not fully usable, so we also removed the accesskey needed for the
focus.
2019-09-13 08:43:59 +00:00
wan 956338f28a [FIX] account: manage multi-company for accrual wizard
Before, it was possible to select lines from different companies and create a line from a yet different company. This is now forbidden.
Also, add tests to ensure only the account is changed when creating an accrual entry.

closes odoo/odoo#36751

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-12 09:31:53 +00:00
wan f97c902847 [FIX] account: multi-company CoA installation
With the changes in the ORM, the method _compute_has_chart_of_accounts is now also called after the create, erasing the value of chart_template_id.
We cannot set that field as related to the company because set_values checks if the value changes and it wouldnt be the case if we already changed it at the validation of the config form.

So this commit checks if there is already a value before setting the default.

closes odoo/odoo#36780

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-12 14:51:33 +00:00
wan 4d38d04d81 [FIX] account: width of scrollbar in account searchpanel
When there is a lot of data to be displayed in the searchpanel, the scrollbar appears. The with of the scrollbar takes too much space compared to the width of the custom searchpanel.
This commit reduces the size for Chrome and Firefox >= 64

closes odoo/odoo#36758

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-12 09:29:01 +00:00
Julien Castiaux 51a602824c [FIX] account: inherits key is define in the backend
Install Account, do an invoice, send and print it. Install
snailmail_account, do the same process. The wizard refuses to send the
email because the Compose field is empty.

The `account.invoice.send` model is defined with an `_inherits` to
`mail.compose.message` on the `compose_id` key. When the model is first
created, that `compose_id` key is left unpopulated on the view as the
referenced model is not created yet. Hence posting the view is
impossible as it fails the form validation.

closes odoo/odoo#36715

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2019-09-12 07:46:39 +00:00
Laurent Smet 7965c890c4 [IMP] l10n_generic_coa: Improve demo data
To get a better overview of the groupy view like "Sales Journal",
we need some attachments on invoices.

Furthermore, the product's label was missing on all invoice lines.

closes odoo/odoo#36573

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-11 14:26:52 +00:00
wan 92d661b427 [IMP] account: allow partial reconcile with same amount_currency
Task 1902206
When importing from winbooks, there might be entries with the amount_currency that matches but with an exchange difference that was not yet created. This commit allows to do a reconciliation without trying to do a full reconcile if it is the case

closes odoo/odoo#35055

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-06 15:15:50 +00:00
wan 54bfa09570 [FIX] account: constraint _check_duplicate_supplier_reference using wrong field 2019-09-03 13:36:41 +00:00
wan 390af4f6cb [REF] account: allow to add steps in onboarding
Task 1902206
2019-09-03 13:36:18 +00:00
wan 5a83187773 [IMP] account: remove old followup variable and methods
Task 1986647

With the reworking of the account_report_followup module, these variables and methods are no longer needed. Now everything is done with followup levels, with only one level by default
Also rename account_report_followup to account_followup.

closes odoo/odoo#35772

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-10 10:59:01 +00:00
Florian Gilbert 939bf9a25d [FIX] account: Change the invoice report file name.
The file name follows this format: Invoice_Name_YEAR_Number.pdf

Task id: 2060475

closes odoo/odoo#36600

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-10 08:05:28 +00:00
Martin Trigaux 68c753af55 [I18N] *: export saas-12.5 source terms
Still without demo data

closes odoo/odoo#36559

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-10 08:58:33 +00:00
Odoo Translation Bot 0d51520083 [I18N] Update translation terms from Transifex 2019-09-08 01:29:12 +02:00
Hetashree ChauhanandHardik Prajapati 4a1bbbff75 [IMP] account: various improvements
- show period along with 'Tax Report' activity of journals on accounting dashboard.
- added 'Upload Invoices' button on sales journals in Accounting Dashboard.
- added 'New Bill' button on purchase journals in Accounting Dashboard.

Task: 34740
Closes: #34740

Co-authored-by: Hardik Prajapati <hpr@odoo.com>
2019-09-06 07:12:06 +00:00
RomainLibert 2ab1259433 [FIX] account: change amount to amount_total
`amount` does not exist on account.move, it should be amount_total

closes odoo/odoo#36478

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-05 13:06:03 +00:00
qdp-odoo d604deccee [IMP] account: speedup of the aged partner balance
Removed a browse on partners made in a loop, for a substantial gain of time and DB queries.

Observed gain for a real data DB with 500 partners to print in the aged report:
time (ms)                  # queries
Before patch               4583                       1623
After patch                2932                        553
Gain                       1651 (36%)                 1070 (66%)

closes odoo/odoo#36488

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-05 14:08:55 +00:00
jem-odoo 14ec06e04a [IMP] account: multi company domain on product account fields
As we have to set account on product and product category to know in which
account generate some accounting entries in some business flow (e.i.: expense),
we need to keep some consistence with those accounts.
Since those fields are company dependent, meaning their value depends on the
current company, we want to ease the selection for the end user by only displaying
the relation available in the current company. To do so, specific domain are needed.
This guidelines should be applyied on each property fields.

Task-1999686
2019-09-05 07:48:32 +00:00
Louis Baudoux a64476635e [FIX] account: fix main_attachment_id not set on attachment upload
When creating invoices via the 'Upload' button, the
'message_main_attachment_id' field wasn't set on the record. This
happened because the message posted in the chatter was linked to the
wrong 'res_model' which prevented it from being selected as the main
attachment.

This was causing a bug in the OCR module ('account.invoice.extract')
where we use this field to determine which attachment must be sent to
the OCR server.

closes odoo/odoo#36309

Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
2019-09-05 11:22:36 +00:00
Olivier Colson 93fa283020 [FIX] account: don't set default taxes on exchange rate difference accounts
closes odoo/odoo#36332

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-05 10:01:57 +00:00
oco-odoo eeea511725 [FIX] account: only display "post" button of account.move when in draft state
closes odoo/odoo#36457

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-05 09:55:04 +00:00
wan 5112d04637 [FIX] account: prevent multiple event concurency
* When clicking on the partner m2o selection field before having clicked on the bank statement line, 2 events occured:
* the bank statement line expanded
* the partner selection showed

This could lead to unwanted behavior as the renderer could update
-> Stop the propagation of a click on .o_field_widget to prevent
flickering and possible update of the statement line widget

* Always recompute the create line as sometimes the value is not correct
when removing a proposition

closes odoo/odoo#36322

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-09-05 10:24:55 +00:00
qdp-odoo b70803dc04 [IMP] account: usability of journal items tree view
shortened the full_reconcile_id column by re-labelling it 'Matching #'. Asked in 2049120

closes odoo/odoo#36445

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-05 07:48:44 +00:00
Humberto Arocha 4f524dbad6 [IMP] account: Adding Accounting Tags for Indirect Method Cash Flow 2019-09-03 15:08:33 +00:00
qdp-odoo f75fc4ed63 [FIX] account: journal items tree view not editable
Task 2008956

closes odoo/odoo#36205

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-04 09:00:03 +00:00
qdp-odoo 1b91747d05 [FIX] account: fixed view_mode on specialized journal items tree view
removed form,kanban from view_mode on specialized journal items tree views

Task 2008956
2019-09-04 09:00:03 +00:00
qdp-odoo 1eb931f84b [IMP] account: better display name for journal entries
Task 2008956
2019-09-04 09:00:03 +00:00
wan 0a5955bff6 [IMP] account: improve list and search view of account move line
Task 2008956

* Remove the sequence from the default order of account.move.line as it
  is only needed in the list view of the invoice form view; add it
  there.
* Allow to order by date on the grouped list view of account.move.line by
  setting an aggregate function
2019-09-04 09:00:03 +00:00
wan 737eaf9333 [IMP] account: add searchpanel on account.account and account.move.line
Task 2008956

* Add the root of an account (first 2 digits/char) as a searchable model.
* Create a custom searchpanel for this account root on account.move.line
* Add the account_root searchpanel to the account.account view too.
2019-09-04 09:00:03 +00:00
Sapan Zaveri fe59754c52 [IMP] account: warn when invoice date is future
Before this task,
There was no warning message when invoice date is set in
future.

task-2053068

closes odoo/odoo#35796

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-19 06:57:29 +00:00
Christophe Simonis 51354fadb0 [MERGE] forward port branch saas-12.3 up to 50e571acf7
closes odoo/odoo#36491

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-11 09:39:33 +00:00
Lucas Perais (lpe) 3c43fb61a3 [FIX] account: i18n: de: online sync partner form
In german
In account > settings
click on add a bank account

search for a bank that doesn't exist
And click, on the middle of the modal, on "create ..."

Before this commit, it crashed, because the term was wrongly translated

After this commit, it opens the form view to create a bank account

OPW 2068507

closes odoo/odoo#36652

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-09-10 15:44:35 +00:00
Nicolas Lempereur 25bba05710 [FIX] account: wrong html in AR translation
This translation causes a traceback when opening accounting app in
arabic.

opw-2068360
opw-2068513
opw-2069010
closes #36570

Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-09-09 14:02:04 +00:00
Florian Gilbert da6f24bb4c [FIX] account: Add 'to_check' field on account_move entry view.
This field has been removed unintentionally here: beaa30a3d1

closes odoo/odoo#36540

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-09 07:28:24 +00:00
Josse Colpaert 16c1abf339 [IMP] account: add method to get payments
closes odoo/odoo#36228

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-04 14:14:58 +00:00
Odoo Translation Bot 71cc792c94 [I18N] Update translation terms from Transifex 2019-09-08 06:21:59 +02:00