# Tryton Release 6.8

**URL:** <https://discuss.tryton.org/t/tryton-release-6-8/5993>\
**Category:** News\
**Created:** [May 2, 2023, 6:00am UTC](https://discuss.tryton.org/t/tryton-release-6-8/5993 "2023-05-02T06:00:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)\
**Post date:** [May 2, 2023, 6:00am UTC](https://discuss.tryton.org/t/tryton-release-6-8/5993/1 "2023-05-02T06:00:32Z")

</div>

![Picture carousel of Tryton views](https://discuss-cdn.tryton.org/uploads/default/original/2X/2/21aba21ad5172ccd323581b2b945b3b67fda1b97.gif)

We are very proud to announce the 6.8 release of [Tryton](https://www.tryton.org/).  
In this release there are many [bug fixes](https://foss.heptapod.net/tryton/tryton/-/merge_requests?scope=all&state=merged&label_name%5B%5D=type%3A%3Acrash), [behaviour](https://foss.heptapod.net/tryton/tryton/-/merge_requests?scope=all&state=merged&label_name%5B%5D=type%3A%3Abehavior) and [performance](https://foss.heptapod.net/tryton/tryton/-/merge_requests?scope=all&state=merged&label_name%5B%5D=type%3A%3Aperformance) improvements and plenty of other small enhancements. There are also _three new modules_.  
You can give Tryton a try on the [demo server](https://www.tryton.org/download#demo), use the [docker image](https://www.tryton.org/download#docker) or [download it](https://www.tryton.org/download). The client is also now available as a [Linux Flatpak](https://flathub.org/apps/org.tryton.Tryton-68).

As usual migration from previous series is fully supported. The [Migration from 6.6 to 6.8](https://discuss.tryton.org/t/migration-from-6-6-to-6-8/6109) lists any manual operations that may be required.

After the release of series 6.8, support for series 6.4 will soon come to an end.

Here is a list of the most noticeable [features](https://foss.heptapod.net/tryton/tryton/-/merge_requests?scope=all&state=merged&label_name%5B%5D=type%3A%3Afeature):

## Changes for the User

### Sales and Purchase

A new shipment state _Partially Shipped_ has been added for _Sales_ and _Purchases_ to indicate [that there are already partial shipments](https://foss.heptapod.net/tryton/tryton/-/merge_requests/193/).

 ![Partially states in sales and purchase](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c7cc002d968e5cb9e719bb1736b3e86c7836e9f0.png)

For sale and purchase lines without a product, [we now get the taxes from the default accounts](https://foss.heptapod.net/tryton/tryton/-/merge_requests/438) in the account configuration.

For products that are marked as supply on sale, it is now possible to configure the system so that [purchases are only generated if there is not enough stock available](https://foss.heptapod.net/tryton/tryton/-/merge_requests/9) in the warehouse.

We [notify users when they configure a product that is to be supplied on sale but which also has a purchase order point configured](https://foss.heptapod.net/tryton/tryton/-/commit/3a0bb94e297a105f1225c44ed8e953712efb46c9).

### Accounting, Invoicing and Payment

We now support deposits in a different currency based on the amount of the secondary currency as we do for invoice payments. For the deposit we limit the recall to only accounts with the same currency and we [use the amount in the second currency, when needed, to compute the deposit amount](https://foss.heptapod.net/tryton/tryton/-/merge_requests/297) to use.

When opening invoices related to a party [the list now shows the pending and paid invoices](https://foss.heptapod.net/tryton/tryton/-/merge_requests/315).

 ![Pending and paid invoices on party relates](https://discuss-cdn.tryton.org/uploads/default/original/2X/8/85e78e3366fda7f361f37683682c3fa9f59a500f.png)

It is now possible to define whether [the full supplier’s invoice should be generated, or just the invoice lines](https://foss.heptapod.net/tryton/tryton/-/merge_requests/287). This makes it easier to get the invoices to match the format used by the supplier.

The invoice state shown on _Sales_ and _Purchases_ now indicates whether the [related invoices are pending, awaiting payment or partially paid](https://foss.heptapod.net/tryton/tryton/-/merge_requests/210/).

The [receivable/payable lines now have a column with the _cumulative balance_](https://foss.heptapod.net/tryton/tryton/-/merge_requests/125). This helps you see the evolution of the customer/supplier debt.

 ![Cumulative balance in receivables/payables](https://discuss-cdn.tryton.org/uploads/default/original/2X/3/3f63bc2afd2a02f46345aba0c1926297b1d1760f.png)

We now [display the general ledger information](https://bugs.tryton.org/issue11807) like debit, credit and balance on the account form. This is useful when you are browsing account moves and you want to quickly check that information.

 ![Account form with general ledger buttons](https://discuss-cdn.tryton.org/uploads/default/original/2X/d/d40f7b5ab98fd607626d0148f68dd0fa7779fa1e.png)

> **More**
>
> The [payment groups now have a window domain](https://foss.heptapod.net/tryton/tryton/-/merge_requests/189) to easily filter which are pending and which are already processed.
> 
> [Mandates linked to inactive accounts are no longer considered as valid](https://foss.heptapod.net/tryton/tryton/-/merge_requests/370) for sepa payments. Also, when deactivating an account its linked account numbers are also deactivated.
> 
> A [warning is raised when cancelling an account move](https://foss.heptapod.net/tryton/tryton/-/merge_requests/226) related to an invoice, because the invoice will be marked as _paid_ and not _cancelled_.
> 
> On the move line form [we show the payment amount and the payments](https://foss.heptapod.net/tryton/tryton/-/merge_requests/393). Because it can be useful to get an understanding how the payment amount is computed.
> 
> The general ledger lines now support both [reconcile and unreconcile](https://foss.heptapod.net/tryton/tryton/-/merge_requests/369).
> 
> The [account move template keywords are now checked](https://foss.heptapod.net/tryton/tryton/-/merge_requests/327) to ensure they are valid when they are created, to ensure the template works when it is used.
> 
> The party is [no longer considered to be part of the the record name when searching for invoices](https://foss.heptapod.net/tryton/tryton/-/merge_requests/300).
> 
> Now the [pay-button is hidden](https://foss.heptapod.net/tryton/tryton/-/merge_requests/395) on invoices without payment method.
> 
> An [option to cancel a move with a reversal move](https://foss.heptapod.net/tryton/tryton/-/merge_requests/233) has been added. So, when checked, Tryton will post the move with the debit and credit swapped over, instead of posting negative debits and credits.
> 
> [Direct debit payments are no longer created for blocked receivable lines](https://foss.heptapod.net/tryton/tryton/-/issues/11983).
> 
> [Rounding errors for multiple taxes](https://foss.heptapod.net/tryton/tryton/-/issues/11317) applied to the same line, are now allocated between each tax line to provide a more accurate result.
> 
> For consistency we [renamed the field “Name” on account reconciliation to “Number”](https://foss.heptapod.net/tryton/tryton/-/merge_requests/135) as it is generated from a sequence.

### Stock, Production and Shipment

Now it is possible to have [non salable and non purchasable products on return shipments](https://foss.heptapod.net/tryton/tryton/-/merge_requests/390).

When creating order points, the user’s [warehouse is now used by default](https://foss.heptapod.net/tryton/tryton/-/merge_requests/372).

The [moves that make up a shipment are now shown in a specific order](https://foss.heptapod.net/tryton/tryton/-/merge_requests/325).

When trying to assign shipments or productions, all the documents that [can be fully assigned are now assigned](https://foss.heptapod.net/tryton/tryton/-/commit/d4c18ea3f86bbbeeb019e767e214fc4c08a6fe86) instead of it being all or nothing.

The [lot number is no longer copied](https://foss.heptapod.net/tryton/tryton/-/commit/b13df33881c7d06d6e7dc048793dbffa41a8fabd) when a lot is duplicated which has a sequence configured. This means that the new lot gets the next number in the sequence.

We’ve added a [link to open the stock lots from the product](https://foss.heptapod.net/tryton/tryton/-/commit/4d53c859589c0d4758ec2f8fe7f67004ad9067cb) form. This is useful if, for example, you want to create the lots for an asset.

The [stock lot can now be deactivated](https://foss.heptapod.net/tryton/tryton/-/commit/2b3e28bed99116a068ee54620f089d8945590dc7). This simplifies lot management by removing lots that are no longer used.

We’ve [added the party and the description from the invoice to the invoice line list](https://foss.heptapod.net/tryton/tryton/-/commit/bd7b1e764e0bebbc6cf2ef680a7da3f8cc4fe2c0). This is useful to select the right invoice lines when filling in a landed cost or a shipment cost form.

### Parties and CRM

We’ve [added links from party to its purchase and sales lines](https://foss.heptapod.net/tryton/tryton/-/merge_requests/225) in addition to the purchases and sales. Also all those links show the number of _pending_ and _done_ records.

 ![Parties form with purchase and sale lines an the number of pending and done records](https://discuss-cdn.tryton.org/uploads/default/original/2X/8/8ec1af54d241c0e541cb9391ea09964fd1c52b90.png)

Now Tryton [notifies the user when they are registering a party identifier](https://foss.heptapod.net/tryton/tryton/-/merge_requests/244) that is already in use with another party. This helps prevent duplicate parties from being created.

 ![Notification for duplicate parties](https://discuss-cdn.tryton.org/uploads/default/original/2X/8/800badab8da5356a93051ea56553a73adff63f66.png)

The [stock moves and invoice lines linked to a sale or purchase line](https://foss.heptapod.net/tryton/tryton/-/merge_requests/240) are now displayed on their form. This is useful to understand the status of an order.

Tryton now [supports setting a price for a carrier cost that is based on weight](https://foss.heptapod.net/tryton/tryton/-/merge_requests/250) even if the products have no weight.

A [carrier is now required to quote](https://foss.heptapod.net/tryton/tryton/-/issues/11985) a sale that has a shipment cost set. This avoids an incoherent setup which then misses quoting the carrier cost.

### Reference Data

We’ve added a [new category of unit of measure for energy](https://foss.heptapod.net/tryton/tryton/-/merge_requests/293) with some common units like the Joule and Kilowatt-hour.  
And we [removed the non-standard “Work day” unit](https://foss.heptapod.net/tryton/tryton/-/merge_requests/262) because its value depends on the company’s working practices.

The [country organizations can now be used as criteria for tariff codes and duty rates](https://foss.heptapod.net/tryton/tryton/-/issues/11838).  
We now show [all the criteria for the tariff codes](https://foss.heptapod.net/tryton/tryton/-/issues/11888) on the product form.

### User Interface

We now use a [circle border for avatar](https://foss.heptapod.net/tryton/tryton/-/merge_requests/110) images of individuals and a square border for groups like companies.

 ![List of parties with rounded avatar](https://discuss-cdn.tryton.org/uploads/default/original/2X/f/f1f44bc2b4aba18621d7f1468f07ccc59fcdac42.webp)

 ![Party form with rounded avatar](https://discuss-cdn.tryton.org/uploads/default/original/2X/5/55034f9e037bb43d6144730dbfd23f742a559779.webp)

The [translate popup has been reworked](https://foss.heptapod.net/tryton/tryton/-/issues/3125) to be clearer. It uses now a toggle button to start editing the translation for a language and uses a label to indicate a translation is fuzzy.

 ![Translate dialog on web client](https://discuss-cdn.tryton.org/uploads/default/original/2X/8/859a2fdd34f0ddd844994babd5bd34c5b8c72cc3.webp)

 ![Translate dialog on desktop client](https://discuss-cdn.tryton.org/uploads/default/original/2X/a/a69288ef8565c5558dc9b899ff3a35b7e13d6afb.webp)

> **More**
>
> We [changed the boolean operators](https://foss.heptapod.net/tryton/tryton/-/commit/e3aa1151f4e85a1728327ac4cdae6e27ab339785) in the search box from `and` and `or` to `&` and `|`. This means the searches are independent of the language and we do not need to have a way of escaping them.
> 
> The clients [no longer select the first record](https://foss.heptapod.net/tryton/tryton/-/commit/e0208968107b2591055231207bbe5e0df79ba7b9) of each list by default.
> 
> The [default size of the desktop client has been increased](https://foss.heptapod.net/tryton/tryton/-/commit/be9910c8c78554c6b0eb6f0e47380e765978953d).
> 
> The [sale, purchase, commission and stock report records can now be searched by name](https://foss.heptapod.net/tryton/tryton/-/commit/fb57f3722193359d708fb9437c64ef06e7864a39).
> 
> The [xxx2Many widgets now display the number of selected records](https://foss.heptapod.net/tryton/tryton/-/commit/2838892bb59e2691b2b1d425f1bc68cefb24b2e6). This helps prevent mistakes when managing a large list of records.
> 
> The [error message, shown when trying to modify a record protected by XML declaration, has been improved](https://foss.heptapod.net/tryton/tryton/-/commit/50b6d98721a6121cb77193734336e2db49892cd2) to include the name and type of the record and optionally the field.

## New Modules

A new module to [account for stock in Europe](https://foss.heptapod.net/tryton/tryton/-/merge_requests/47) has been added. For now, this module lets you generate the [instrastat declaration](https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-returns/intrastat-declarations.html) for several countries.

We added a [new module to parse statements with MT940 format](https://foss.heptapod.net/tryton/tryton/-/merge_requests/130).

![Import MT940](https://discuss-cdn.tryton.org/uploads/default/original/2X/2/29f154f24c92aae37dbf1a8982f064359b8c4405.gif)

The new [quality module](https://foss.heptapod.net/tryton/tryton/-/merge_requests/218) enables _quality_ to be _controlled_ by configuring _control points_ and _inspecting_ against these when certain _operations_ are performed.

## Changes for the System Administrator

To get a full picture of what changes have happened to a record the basic create/write logs for the record are often not detailed enough. We’ve [implemented an intermediary log system](https://foss.heptapod.net/tryton/tryton/-/merge_requests/264) which records:

- writes and deletes done directly by users
- button presses that perform an operation
- wizard state changes that may modify data in the database
- workflow transitions to a new state

The [currency symbol is no longer required](https://foss.heptapod.net/tryton/tryton/-/merge_requests/331). The currency code will be used when no symbol is set for the currency.

The [size of each cache can now be fine tuned](https://foss.heptapod.net/tryton/tryton/-/merge_requests/163) using entries in the configuration file. So you no longer need to develop a new module to change the cache size for a particular usage.

The [weekly and monthly timesheet reports now also have access rules](https://foss.heptapod.net/tryton/tryton/-/commit/45f98c34bca0a50556f8a276caf89a6f4f8b6394). The supervisor now has access to the timesheet reports for the employees he supervises.

The [production now automatically creates stock lots](https://foss.heptapod.net/tryton/tryton/-/commit/11d9848aa118416ece34bd133b6420074370eb17) for output products that require one and that have a sequence configured.

## Changes for Implementers and Developers

The [getter-method of function fields and `on_change_with`-methods now allow a model instance to be returned](https://foss.heptapod.net/tryton/tryton/-/merge_requests/397), instead of the `id` of a model instance.

We now [support Python 3.11 and at the same time have removed support for Python 3.7](https://foss.heptapod.net/tryton/tryton/-/merge_requests/236).  
Python 3.7 is only supported until June, which is not long after this release, so by doing this we keep running tests on the same number of different Python versions.

The [`FiscalYear` and `Period` find methods have been improved](https://foss.heptapod.net/tryton/tryton/-/merge_requests/278). They now cache the result to avoid redundant database queries, and always raise an exception when no fiscal year, or period, is found.

The [domain method is now supported on all field types](https://foss.heptapod.net/tryton/tryton/-/merge_requests/317). Up until now, this method was not implemented for some relation fields.

The [calls to `copy` are now grouped together when assigning stock moves](https://foss.heptapod.net/tryton/tryton/-/merge_requests/332). This can, in some cases, make the process of assigning moves up to 10 times faster.

The [dimensions on package and package types have been unified](https://foss.heptapod.net/tryton/tryton/-/merge_requests/366).

The server now includes the [tools to generate barcodes and QR codes](https://foss.heptapod.net/tryton/tryton/-/commit/98664db40939951429420d579381c6658375abf6).  
The [_product module_ makes use of a method that generates the barcode](https://foss.heptapod.net/tryton/tryton/-/commit/12b64829) for a corresponding product identifier.

We’ve [added two methods on the `Field`](https://foss.heptapod.net/tryton/tryton/-/merge_requests/108). `searchable` which returns `True` if the field can be used in a _domain expression_ and `sortable` if the field can be used in an _order expression_.

The [`list-form` view now has abilities to do validation, pre-validation and automatic saving](https://foss.heptapod.net/tryton/tryton/-/merge_requests/191) when the selected record changes. This mimics the behaviour of the _editable list_.  
Also the [selections are now restored on `list-form` view](https://foss.heptapod.net/tryton/tryton/-/merge_requests/192).

New types of exceptions have been introduced: [`RPCReturnException` and `ButtonActionException`](https://foss.heptapod.net/tryton/tryton/-/merge_requests/182). They are used to launch an action from a button using an exception (which rolls back the transaction started by the button).  
This is useful if, for example, you need to launch a wizard before executing a transition.

The behavior of the `purchase_invoice_line_standalone` module has been modified. Previously, upon activation, it did not generate an invoice. However, with the introduction of a new feature that allows the user to decide whether [the full supplier’s invoice should be generated, or just the invoice lines](https://foss.heptapod.net/tryton/tryton/-/merge_requests/287), the default setting for all parties is now set to generate invoices.  
If your requirement aligns with the module’s previous behavior, which did not generate an invoice upon activation, it may be necessary for you to manually override this setting. To do so, set `default_purchase_invoice_line_standalone` to `True`.

> **More**
>
> It’s now [easy to extend the context keys that the caches must ignore](https://foss.heptapod.net/tryton/tryton/-/merge_requests/121).
> 
> For the calendar view, it is possible to [scroll to a time](https://foss.heptapod.net/tryton/tryton/-/merge_requests/242), by default, by including the `calendar_scroll_time` key in the context. This is only supported by the web client for now.
> 
> Tryton will now warn when [foreign relation records must be saved implicitly](https://foss.heptapod.net/tryton/tryton/-/issues/11381). This is to enforce a design pattern which groups together saving for performance.
> 
> Tryton [no longer validates the domain for empty fields](https://foss.heptapod.net/tryton/tryton/-/merge_requests/10). This simplifies domain definitions for fields that are not required, as they do not need to care about the case when a field is empty. As side effect the clients don’t enforce the uniqueness of values in non-required fields.
> 
> The client now considers [a domain that uses the `in` clause with a single value to be a unique value](https://foss.heptapod.net/tryton/tryton/-/issues/11953).
> 
> The [`target_search` attribute of `Many2One` fields has been removed](https://foss.heptapod.net/tryton/tryton/-/merge_requests/24) in favor of an automatic decision based on the number of rows in the target table.
> 
> The [ORM now uses the `EXIST` operator instead of `IN`](https://foss.heptapod.net/tryton/tryton/-/issues/11934) to search on `One2Many` fields when the target table has many rows.
> 
> Any needed [tables are now locked at the beginning](https://foss.heptapod.net/tryton/tryton/-/issues/10870) of the transaction. This guarantees that the latest values are read from the table. This is managed automatically by restarting the transaction if a table lock is requested during the execution of the code.
> 
> We added [support for different types of borders on images and icons](https://foss.heptapod.net/tryton/tryton/-/issues/11458) (but only for the web client).
> 
> The [warehouse locations are now stored on the shipments](https://foss.heptapod.net/tryton/tryton/-/commit/6efb7bc9d60f4dc5b36ee8caf344ee01a887f08f) at the point the are created. This ensures that the domain based on them stays valid during the whole life of the shipment.
> 
> The [cookiecutter template is now included in the monorepo](https://foss.heptapod.net/tryton/tryton/-/commit/883fa6d78adb177b4c6a5ce76b4e1bafd6c2b2a4). This allows it to be versioned by series.
> 
> New [exceptions have been added to stop the transaction but still return a result](https://foss.heptapod.net/tryton/tryton/-/commit/35ed4aa50b16ddcd8dc5b748082aef62f41232db). This result can be an action for the client to launch.
> 
> To speed-up loading a list of records, the [clients can now retrieve, in the read call, the string to display for selection fields](https://foss.heptapod.net/tryton/tryton/-/commit/2763339d88d5b9b7f8d3fbc821e99c854eec8248).
> 
> We now use the [“match pattern” to find accounting journals](https://foss.heptapod.net/tryton/tryton/-/commit/74cad8cf1dbe368495f53e42a7f53bb29c4de50a). This allows for more customization in the way a journal is selected.
> 
> The RPC calls to retrieve the list of [selections for a field are now cached](https://bugs.tryton.org/issue11793) by the client for 1 day if they are based on a class method.
> 
> We’ve added an [`identifier_get` method to the _Product_ model](https://bugs.tryton.org/issue11811) that retrieves the first identifier that matches any of the identifier types passed.
> 
> The [tariff codes now use the standard `ir.calendar.month`](https://bugs.tryton.org/issue11892) instead of a custom selection.

Authors: @dave @pokoli @udono

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [May 4, 2023, 9:43am UTC](https://discuss.tryton.org/t/tryton-release-6-8/5993/2 "2023-05-04T09:43:30Z")

</div>

Pinned globally on May 4, 2023, 9:43am UTC



---

<div class="post-metadata">

**Author:** ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)\
**Post date:** [June 1, 2023, 6:01am UTC](https://discuss.tryton.org/t/tryton-release-6-8/5993/3 "2023-06-01T06:01:09Z")

</div>

Closed on June 1, 2023, 6:01am UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
