summaryrefslogtreecommitdiff
path: root/addons/account/static/src/xml
AgeCommit message (Collapse)Author
2019-04-04[REF] account: simplification of payments objectswan
simplification of payments objects and refactoring of the code * registering payment(s) from the list of invoice now generate a single payment per invoice selected * no more abstract object for payments/payment wizard as the logic is now really simple: - group_invoices option is now removed and we never try to group payments based on the currency/customer of whatsoever (see above), - the payment amount is the full residual amount of invoice and users cannot change it anymore * partner_bank_account_id not required as soon as visible (depends on the payment method) * refactoring to name tags and allow easier inheritance via xpath part of task #1918423
2019-03-12[FIX] account: change reconciliation widget m2o tax_id to a m2m tax_idsCedric Snauwaert
closes odoo/odoo#26990 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-03-14[MERGE] forward port branch saas-12.1 up to ff1bca32f3aChristophe Simonis
2019-03-14[MERGE] forward port branch 12.0 up to a26496b6e79Christophe Simonis
2019-03-14[MERGE] forward port branch saas-11.3 up to f5ab04ce509Christophe Simonis
2019-03-13[MERGE] forward port branch 11.0 up to c23d1186e7bChristophe Simonis
2019-03-13[FIX] account: show missing 'Go to bank statements' buttontarteo
When importing bank statements, a rainbow man is shown but with no action button The active model is account.bank.statement.import in this context Before this commit, the rainbow man was staying with no possible action closes odoo/odoo#30723 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-02-22[MERGE] forward port branch saas-12.1 up to 0f4abc5c228Christophe Simonis
2019-02-21[MERGE] forward port branch 12.0 up to 84143a34b31Christophe Simonis
2019-02-11[MERGE] forward port branch saas-12.1 up to 93d736e905eChristophe Simonis
2019-02-15[FIX] account: fix rpc concurency in reconciliation widgetwan
When there are lots of lines to be considered, the rpc can come in the wrong order, causing the client to not display the wanted lines. By asking the user to hit enter or leave the input field, we reduce the number of requests and we get rid of the concurency of rpc closes odoo/odoo#30280
2019-02-08[ADD] account: suspense account managementwan
Task 1930403 Purpose: A suspense account is an account in the general ledger that temporarily stores any transactions for which there is uncertainty about the account in which they should be recorded. Once the accounting staff investigates and clarifies the purpose of this type of transaction, it shifts the transaction out of the suspense account and into the correct account(s). An entry into a suspense account may be a debit or a credit. The Chosen Odoo approach (macro) for this case is 1) from bank statement -> reconciliation widget -> reconciliation model 2) create move that have a dedicated checkbox 3) be able to reopen the bank statement line "like if there is no linked account move" and finally reconcile the transaction with the good invoice/bill (we can reprocess account move "to check") 4) when we reprocess, Instead of creating an account move : Check if there is an "to check" existing linked account move and remove all the account move lines then replace them by the good ones --> we want to keep the sequence closes odoo/odoo#30486
2019-01-30[FIX] account: do not translate technical contentMartin Trigaux
2019-01-31[MERGE] forward port branch 12.0 up to cb8fefa8999Christophe Simonis
2019-01-30[FIX] account: add date field in reconciliation writeoff formwan
purpose: when creating a writeoff from the manual reconciliation widget (invoices & payment matching), there's no way to specify the date of the writeoff journal entry specs: in v12, add a date field in the js and set the date of the writeoff entry accordingly Was PR #29794 Was OPW 1896593 closes odoo/odoo#30676
2019-01-29[MERGE] forward port branch 11.0 up to 36d96e01503Christophe Simonis
2019-01-29[MERGE] forward port branch saas-11.3 up to cd5c8a02f95Christophe Simonis
2018-12-05[FIX] account: manual reconciliation fix new iconCedric Snauwaert
In the manual reconciliation widget, after a reconciliation with a writeoff is done, there is still an empty line displayed with the "new" icon. This commit removes the "new" icon on empty line.
2018-12-05[MERGE] forward port branch 12.0 up to 053bb45706fChristophe Simonis
2018-12-04[IMP] account: possibility to edit amount in reconciliation widgetCedric Snauwaert
Before we could only make a partial payment that was equal to the value of the statement line if the payment was greater than the statement line. Now we can modify the value of any line (black line) used in the statement reconciliation widget. This allow to have the following: Statement line of 500 Payment 1 of 500 Payment 2 of 500 We can reconcile the statement line with 250 from payment 1 and 250 from payment 2. Task: 1870895 closes odoo/odoo#27805
2019-01-24[FIX] account: invoice outstanding credits displayJorge Pinna Puissant
Before this commit, in the customer invoice form, when the outstanding credits have a big reference or name, the form displayed the name in a multiple line which made difficult to read and to understand when a credit starts, and when a credit stops. It also overlapped the name and the amounts. Now, when the name is too big, it's truncated, and the full name is shown when the mouse hovers the field. OPW-1915966 closes odoo/odoo#30518
2018-11-21[FIX] account: outstanding credit add button not shown in greenJulien (juc) Castiaux
The "add" button shown in the outstanding credits menu in the button right corner of a payment wasn't shown in green like the other clickable elements. opw-1907342 closes odoo/odoo#28908
2018-10-18[FIX] account: do not crash if base_import is not installedlen-odoo
The BillsListView adds an 'Upload' button to the view list of buttons. However it tried to add the 'Import' button even if 'base_import', the module adding that feature, was not installed. It resulted in a crash, making impossible to access vendor bills. opw 1895223 closes odoo/odoo#27939
2018-09-21[IMP] account: improve reconciliation congratulation messageeco-odoo
If there was only one reconciliation the (rounded) time per transaction was often different from the real one.
2018-09-20[IMP] account: management of reconciliation rulesLaurent Smet
Bank statement lines need to be matched with entries; We have to automate this operation as much as possible. At the same time, create an algorithm that fit everyone needs is quite impossible. For that reason we will let users choose the rules they want with the improvement of reconciliation models. Note that we did it only for bank statement reconliation, not for manual reconciliations. Was task: 1877375 Was PR #26669
2018-09-14[IMP] account: add "Upload" button in vendor bills tree viewOlivier Colson
Was part of PR #26740 Was part of task #1880089
2018-08-30[FIX] account: caption position in reconciliation widgetqdp-odoo
Default position is now bellow, but in the reconciliation widget we want it above each line so we explicitly have to say it
2018-08-17[IMP] account, bank statement reconciliation widget: improve suggestionsLaurent Smet
Suggestions made to reconcile bank statement lines are now more accurate (based on communication and amount) There's no automatic mode anymore (button + <CTRL+ENTER> shortcut removed) Partners are set automatically when selecting a line in the widget (that will help the creation of a res.partner.bank for him, for a better partner detection next time) Was task: 1847703 Was PR #25438
2018-08-13[IMP] account: reconciliation widget: replace the pager with a `load more` ↵eco-odoo
button Replace the pager and set default visible items to 15.
2018-08-10[FIX] onboarding: Fix/Update onboarding to v2.0eco-odoo
Specification ============= - Fix lots of bug due to the BS4 migration - Improve steps - Validate some steps (Like the company configuration) in all the onboarding bars if done in one onboarding bar. - Only animate the confetti one time if a step is done, instead of on each view loading For more information, see: https://www.odoo.com/web#id=1869513&action=333&active_id=965&model=project.task&view_type=form&menu_id=4720
2018-08-08[ADD] account: allow forcing tax included tax in reconciliation widgetLaurent Smet
Before this commit, the only way to deal with the same tax either with price included or not was to duplicate it, one with the price included checked. This commit add a new boolean on the reconciliation widget propositions to decide if the tax must be used like a price included tax or not. PR: 17040 task: 32717
2018-07-27[REF] *: BS4, replace 'btn-xs' by 'btn-sm'qsm-odoo
In a previous commit, we removed the use of the 'btn-sm' classes as we used it everywhere for default-size buttons instead of customizing the size of those default-size buttons directly. This commit proves it was even more necessary as the 'btn-xs' class does not exist anymore in BS4 and we so can use the 'btn-sm' class instead.
2018-07-27[REF] *: BS4, 'pull-left/right' -> 'float-left/right'qsm-odoo
2018-07-27[REF] *: BS4, adapt dropdowns and caretsqsm-odoo
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
2018-07-27[REF] *: BS4, rename btn-default to btn-secondaryqsm-odoo
BS4 "btn-default" class was replaced with "btn-secondary", which makes more sense.
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2018-07-05[MERGE] forward port branch saas-11.4 up to 8db9865c2d5Christophe Simonis
2018-07-05[MERGE] forward port branch saas-11.3 up to 2214bffefb2Christophe Simonis
2018-07-05[MERGE] forward port branch saas-11.2 up to 45329c0cf2cChristophe Simonis
2018-07-05[MERGE] forward port branch 11.0 up to 84210074e55Christophe Simonis
2018-07-04[FIX] Syntax of icons (#25577)kujiu
Description of the issue/feature this PR addresses: Accessibility improvements forbids the use of the syntax `<i class="fa fa-check"/> Some text` to create a labelled icon. But, by this, some fonts are changed. Desired behavior after PR is merged: The old syntax can be used.
2018-07-03[FIX] account: fix select partner problem in reconciliation widgetCedric Snauwaert
Problem: create a bank statement with a line that has a positive amount and a line that has a negative amount. Both line does not have a partner Then click on reconcile to open the reconciliation widget, notice the message stating that we have to select a partner or choose a counterpart. Select a partner on both line, behavior is different for the line with credit > 0, the message still says "select partner or choose counterpart" This commit fixes this problem.
2018-07-02[MERGE] forward port branch saas-11.4 up to a0c5b58d5d2Christophe Simonis
2018-07-02[MERGE] forward port branch saas-11.3 up to 4846c30c90aChristophe Simonis
2018-07-02[MERGE] forward port branch saas-11.2 up to 611c86dbc74Christophe Simonis
2018-07-02[MERGE] forward port branch 11.0 up to 21b2617d6feChristophe Simonis
2018-07-02[FIX] account: show statement line info popover on reconciliation widgetXavier Alt
This popover is the only way to get extra information like the note or the reference of the bank statement line. Was PR #25543
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-06-08[IMP] account: facilitate bank account and bank journal configOlivier Colson
With this change, * some modules are now set to be automatically installed by default * the setup bar of accounting has been changed in order to allow more easiliy the configuration of bank accounts/journals (and the step to oversee the opening entry has been removed) * the kanban view in the dashboard has been enhanced (mostly for bank journals, but not only) Was task: 32668 Was PR #23049