Commit Graph
4 Commits
Author SHA1 Message Date
mizosoft 588bf6b2bb [FIX] account: use proforma preview for non-printed invoices
Issue
-----

If an invoice is created, but not yet "Send & Print", the portal preview shows a normal invoice,
but when "Download"ed from the portal preview, a proforma invoice is downloaded. The download
behavior is intended since the client shouldn't be able to get a "final" invoice themselves,
before the accountant generates one with "Send & Print". However, the HTML preview should also
show a proforma invoice to be consistent with this, so the user downloads what they see.

Steps
-----

 - Create a new invoice: Accounting -> Customers -> Invoices -> New -> ...
 - Go to portal by clicking on "Preview".
 - You'll see a normal invoice. Now click "Download".
 - A proforma invoice is downloaded.

Cause
-----

The HTML-rendered invoice in the portal preview isn't configured to be proforma.

opw-3848049

closes odoo/odoo#161726

Signed-off-by: Claire Bretton (clbr) <clbr@odoo.com>
2024-04-22 08:27:07 +00:00
mizosoft 9c4c4b65ba [FIX] account: constrict activities summaries within containing card
Issue
-----

The activities summaries displayed by the misc. operations  view in the accounting
app take up the entire screen and span across the card if the activity summary
is too long.

Steps
-----

 - Open the Accounting App.
 - Create a new entry from 'Miscellaneous Operations'.
 - Add an activity with a long summary.
 - Go back the dashboard. The summary will try to span the entire width.

Cause
-----

The activities are displayed with a field tag in the kanban view. The field tag
refers to the activities js component as a widget. Due the use of a widget attribute,
the template generates a div with class: "o_field_widget". This class is defined
to have a css "display" attribe with a default value of "inline-block". Using "inline-block"
causes the activity row to take up the whole width.

opw-3839992

closes odoo/odoo#162543

X-original-commit: dec1f870de9f7004a2935f61c79b83dada7a57a5
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
Signed-off-by: Moataz Hussein (mohu) <mohu@odoo.com>
2024-04-19 23:49:52 +00:00
mizosoft 50e55bd8dd [FIX] account: add search field to reconciliation models based on name
Issue
-----

Reconciliation models are not searchable by specific fields (e.g. name).

Steps
-----

 - Open Accounting -> Configuration -> Reconciliation Models.
 - Try typing something into search.
 - No field are suggested to search on.

Cause
-----

No search fields are defined for `account.reconcile.model`, only filters.

opw-3847744

closes odoo/odoo#161648

X-original-commit: 973ad96c7cf4b37fbdeea463bbf676cfee920975
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-04-15 09:10:16 +00:00
mizosoft 32313aac78 [FIX] base: refresh res.currency cache before premature return
Issue
-----

The cache is not updated properly when the configuration of a currency changes.
This leads to reading stale values in other places. For instance, changing currency
symbol position isn't reflected in invoice tree views unless after a server restart.

Steps
-----

 - Open Accounting -> Configuration -> Currencies.
 - Pick the active currency, say USD.
 - Change 'Currency Symbol Position' to a different value.
 - Go to Accounting -> Customers -> Invoices. The displayed amounts don't reflect
   the change.

Cause
-----

Cache refresh was misplaced after a premature return, so the cache wasn't refreshed
when 'digits', 'position' or 'symbol' fields of `res.currency` are written, although
that was the intent.

opw-3849155

closes odoo/odoo#161036

Signed-off-by: Moataz Hussein (mohu) <mohu@odoo.com>
2024-04-11 11:22:44 +00:00