21 Commits
Author SHA1 Message Date
Ali Alfie (alal) 16c67c1cf1 [FIX] hr_expense: use correct partner_id in test
closes odoo/odoo#162826

Signed-off-by: William André (wan) <wan@odoo.com>
2024-04-22 13:39:53 +00:00
Ali Alfie (alal) 1ed71ba1fa [FIX] hr_expense: correct bank account in payment register wizard
To reproduce:
* Add a bank account to Employee, and a bank account to your company.
* Set the company on the employee's contact to yours.
* Create an expense to be reimbursed to the employee, submit it and try
to "Register Payment".

Current behaviour: the recipient bank account in the wizard is set to
the company's.
Expected behaviour: the bank account in the wizard should be set to the
employee's bank account.

This commit solves this.

task-3837305

closes odoo/odoo#160749

Signed-off-by: William André (wan) <wan@odoo.com>
2024-04-19 16:58:41 +00:00
Ali Alfie (alal) 4f65c035b3 [IMP] hr_expense: editable expense lines
In #138387 we modified the expense lines tree in expense reports so that the user can click on the lines to see an attached receipt in the viewer at the side of the webpage. The tree was made to be readonly to make clicking the lines easier and to make it harder for the user to change a field by mistake. This commit reverts the lines to being editable again while leaving some fields as readonly like quantity and taxes as those can invalidate the expense.

task-3685651

closes odoo/odoo#149588

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2024-02-22 16:23:58 +00:00
Ali Alfie (alal) ba1706eca1 [ADD] l10n_es_edi_facturae_invoice_period: invoice periods for EDI
Patch module to add missing fields to the factura-e xml.

task-3673113

closes odoo/odoo#149362

Signed-off-by: William André (wan) <wan@odoo.com>
2024-01-23 22:51:50 +00:00
Ali Alfie (alal) b01cd6ff48 [IMP] hr_expense: usability improvements
This commit contains a few small improvements to the Expense app.

- "View Report" button moved to the left if an attachment has been uploaded.
- Reports are auto saved when created from an expense.
- "Attach Receipt" button now sets the uploaded attachment as the main attachment.
- Expense lines in a report are no longer editable. When a line is clicked, the main attachment for that expense (if any) is shown in the attachment previewer.

task-3539382

closes odoo/odoo#138387

Related: odoo/enterprise#50136
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
2023-11-17 02:45:45 +00:00
Ali Alfie (alal) d58e0c43c7 [FIX] l10n_es_edi_facturae: change signature template
This commit fixes the signature in the export by:
- Changing the signature template to remove unnecessary transforms.
- Replacing SigningCertificateV2 with the correct tag. According to https://www.facturae.gob.es/formato/Paginas/politicas-firma-electronica.aspx the signature follows the XAdES ETSI TS 101 903 format which contains the tag SigningCertificate instead.
- Correcting the way the signature node was removed in the _get_uri_function.

closes odoo/odoo#137321

X-original-commit: e4d92f37da41e7e5efaeb82b4adfff669083fb23
Signed-off-by: William André (wan) <wan@odoo.com>
2023-10-03 07:19:01 +00:00
Ali Alfie (alal) ca797bb960 [IMP] l10n_es_edi_facturae: import facturae
Allows for importing FACe XML files.

task-3387230

X-original-commit: 6b970d73b8feac1903e271770f7df77fc2d96b71
Part-of: odoo/odoo#137321
2023-10-03 07:19:01 +00:00
Ali Alfie (alal) 767341d4ec [IMP] account: default taxes for multi-company product creation
Before:
When a new product was created in a multi-company setting, if the company field is empty, the product is available for all companies. The default sale and purchase tax of the company was set on the product. The problem is that only the default taxes of the currently  active company was set on the product, so viewing  the product in other companies showed an empty field for the tax.

Now:
- When creating a new product with the company field empty, the default taxes of the other companies are set on the product as well.
- Tax display_name now shows company name if in a multi-company environment and more than one company is selected to make it easier to know which tax belongs to which company.

task-3375286

closes odoo/odoo#127196

Related: odoo/enterprise#45075
Signed-off-by: William André (wan) <wan@odoo.com>
2023-09-29 14:48:07 +00:00
Ali Alfie (alal) 1d25e75241 [IMP] hr_expense: add attachments from expense to journal entries
This commit adds a copy of the attachments from the expense report to the created journal entry.

task-3443042

closes odoo/odoo#132955

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-09-14 18:09:50 +00:00
Ali Alfie (alal) 04be1dff54 [IMP] account: add printed report name for invoices
Before: when attempting to print an invoice, the downloaded file had the generic name "Invoice".

Now: downloaded files have the correct invoice number as names.

task-3477659

closes odoo/odoo#135093

X-original-commit: 6b3555d93221ef6db9e3265a95b127a2bb743469
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ali Alfie (alal) <alal@odoo.com>
2023-09-12 07:12:40 +00:00
Ali Alfie (alal) c722017336 [IMP] l10n_de/de_reports/de_skr03/de_skr04: update DE balance sheet
This commit:
- updates the DE balance sheet structure to use the correct one.
- updates the account tags used for l10n_de.
- renames the xmlids of the old tags to the new ones.
- updates the CoA for l10n_de.

task-3336261

closes odoo/odoo#134915

X-original-commit: 3b3c148827758d6dccf40f06f5834e33668a892a
Related: odoo/enterprise#47170
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ali Alfie (alal) <alal@odoo.com>
2023-09-11 15:22:06 +00:00
Ali Alfie (alal) 5b607e5a0b [IMP] sale: amount_to_invoice set to 0 if fully invoiced
For sale orders, if the invoice status is set to "Fully Invoiced", the mount to invoice is forced to zero.

task-3347812

closes odoo/odoo#124777

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-07-26 23:15:03 +02:00
Ali Alfie (alal) 8da5cdf5c0 [IMP] base: Sierra Leone currency update
- adds a new currency SLE for new leones.
- sets the default currency for Sierra Leone to the new SLE currency.

task-3355038

closes odoo/odoo#124239

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-07-26 23:15:00 +02:00
Ali Alfie (alal) 3c6c6e6bb3 [IMP] web: rename cancel button in RedirectWarning to close
"Cancel" button in the RedirectWarning is renamed to "Close"

task-3339621

closes odoo/odoo#125751

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-07-03 21:55:53 +02:00
Ali Alfie (alal) ba5a6752a4 [IMP] account, l10n_eg_edi_eta: moved L10nEgHTTPAdapter to account
For task-3347812, we needed to create the same Adapter used in l10n_eg_edi_eta. Moving the adapter to account.tools allows us to reuse the same class in different modules.

closes odoo/odoo#126985

X-original-commit: a88027af5f5eb5d0efb4d2c42d5a179aa9bd2dc1
Related: odoo/enterprise#43457
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ali Alfie (alal) <alal@odoo.com>
2023-07-01 00:51:43 +02:00
Ali Alfie (alal) f5f13b3ebc [FIX] account: wrong quick encoding calculation with cash discount
Before: when using the quick encoding feature on an invoice or bill with payment term containing an early payment discount and the epd computation is set to "Always (upon invoice)", the calculation was done incorrectly.

Example: if you invoice a 100€ product with a 21% tax with a 2% cash discount, the total of the invoice will be 120.58 (the 21% is calculated on 98€ (100€*2%) which is 20.28€).
In our case, if you tried to calculate suggestions from a quick encoding value of 120.58, the calculation would calculate the untaxed amount from the 120.58 based on the 21% tax without applying the 2% discount.

After: when calculating the suggestions check if an early discount is set on the payment term and the epd computation is set to "mixed" ("Always (upon invoice)") and if so, apply the discount to the tax before calculating the untaxed amount from the total.

task-3339223

closes odoo/odoo#125505

X-original-commit: 162443f1ad913a0388bea60f04ff140e75fdb0ed
Signed-off-by: Laurent Smet <las@odoo.com>
2023-06-17 08:00:07 +02:00
Ali Alfie (alal) 545ef195f2 [FIX] account dashboard graph data
closes odoo/odoo#124457

Before: in the accounting journal dashboard, for bank and cash graph data the date comparison was done with a date object and a formatted date object resulting in them never being equal and duplicating data.
Now: both dates are formatted in the same way
X-original-commit: 0e2594c88dadb91acb1470dbc55b8ab37f6166c1
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-06-13 11:27:48 +02:00
Ali Alfie (alal) 1794b2386c [FIX] account dashboard sample data
Before: in the accounting dashboard, the graph key was confusing for sample data in cash and bank journals

Now: if sample data is shown, the graph key is displayed as "Sample data"

Task-ID #327726333

X-original-commit: 7108277090fb7c7db788dfcc983ff021654c0876
Part-of: odoo/odoo#124457
2023-06-13 11:27:47 +02:00
Ali Alfie (alal) 10d0805c94 [IMP] hr_expense: include paid by company expenses in status bar
Before: in the "My Expenses" statusbar, only expenses paid by the employee were shown.

Now: for the "to submit" and the "under validation" states, we show expenses paid by the employee AND the company. For the "to be reimbursed" state, we ONLY show expenses paid by the company.

task-3319115

closes odoo/odoo#121627

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-06-09 12:21:47 +02:00
Ali Alfie (alal) 2b9587aad6 [FIX] account delay draft opening entry
Before: in the accounting dashboard setup, an opening move was created in step 1 (accounting periods) and step 4 (chart of accounts)

Now: the opening move is only created in step 4 only when a first opening debit/credit is entered manually by our user.

Task-ID #3177315

closes odoo/odoo#122818

X-original-commit: c3793357d823273cb4297b0eb31308ad73a9dff8
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2023-05-29 14:51:55 +02:00
Ali Alfie (alal) 2f2250622b [FIX] hr_expense: expense categories padding issue
Before: in Expense Categories list view, if Internal Notes wasn't empty it would  cause a padding issue. The issue's cause was that the Internal Notes columns is an HTML field, where every line is assigned a margin-bottom.

Now: fixed the padding issue by removing the margin-bottom for the last line in the Internal Notes field.

task-32999162

closes odoo/odoo#121014

X-original-commit: f6bffc092ddc4bdfd9d68efe66dbbcdeed4f0309
Signed-off-by: William André (wan) <wan@odoo.com>
2023-05-15 11:41:29 +02:00