Commit Graph
56918 Commits
Author SHA1 Message Date
Cédric Krier 1e8bb12c2d Do not count header as exported record
Closes #12225
2023-04-28 08:43:09 +02:00
Udo Spallek d3c41cb73c Try __main__.__file__ as application name and fallback to 'trytond' on fail
sys.argv is not reliable to get the process name.

Closes #12242
2023-04-28 23:45:43 +02:00
Cédric Krier 8039dfd5a4 Do not rely on INSERT returning in the same order as VALUES
There is no guarantee by SQL standard that the order of the returned values of
INSERT are the same as the order of VALUES.
Also there is neither any guarantee that the generated id follow the order of
VALUES but the ORM relies on such order to keep records ordered in the same
order as the user insert them (and also for sequence order with NULL value).
So for database that supports multirow insert, we need to set explicitly the
value for the column id to ensure to preserve the insert order.

Closes #12220
2023-04-28 19:04:02 +02:00
Cédric Krier b4d78247cf Support returning more than one nextid 2023-04-22 11:05:23 +02:00
Cédric Krier 4a9e0713d6 Support authorization for werkzeug >= 2.3
The werkzeug refactoring always return an Authorization instance.
If the type is our custom 'session', we must parse the token attribute.

Closes #12234
2023-04-28 09:39:34 +02:00
Cédric Krier 2f42e08090 Compare purchase request from the same company 2023-04-22 17:48:50 +02:00
Adrià Tarroja Caubet c6d3c06278 Add active field on operation form view
Closes #12236
2023-04-27 11:53:42 +02:00
Hartmut Goebel 9d6d093a4c Fix typo for "incoming" in documentation 2023-04-26 17:03:35 +00:00
Korbinian Preisler 18b5bb31fb Call correct super method for packing customer shipment with quality control
Closes #12232
2023-04-26 15:43:05 +02:00
Cédric Krier e880df6e0e Add empty option for taxon rank
Closes #12228
2023-04-19 16:06:51 +02:00
Cédric Krier 9403abd791 Search only for statement related to records valid when applying rules
Closes #12185
2023-04-11 10:44:08 +02:00
Sergi Almacellas Abellana d1b56faece Use company certificate link on Spanish SII documenation
Closes #12197
2023-04-18 09:30:32 +02:00
Cédric Krier 006d440c9f Deduce evaluation length from the size limit of One2Many
Closes #12227
2023-04-19 10:45:29 +02:00
Cédric Krier 5c3f4e503e Use fixed location type to compute quantity to invoice for sale and purchase
Using the computed location to get the expected type is not reliable because
for return order, the location can be of different type and the stock move can
change of location type.

Closes #12203
2023-04-13 17:45:09 +02:00
Cédric Krier a1538856b7 Fill taxes from default account for sale and purchase line without product
Closes #2479
2023-04-09 19:58:49 +02:00
Cédric Krier ae6978354e Limit the size of grouped insert depending on number of columns inserted 2023-04-11 15:57:57 +02:00
Cédric Krier f11d7be10c Use correct name for payment group model in statement rule matching 2023-04-08 17:52:26 +02:00
Cédric Krier 2c38fbc5c4 Compute related to from statement rules all at once
This ensures that only unambiguous value is set and only once.

Closes #12123
2023-04-08 17:51:06 +02:00
Cédric Krier b0b173f84d Convert product cost datetime in UTC from the company timezone
Closes #12026
2023-04-11 00:30:00 +02:00
Cédric Krier f58fb73869 Generate XML coverage for account statement mt940 2023-04-12 00:21:07 +02:00
Cédric Krier fe793b5924 Do not override list of products with recommendation generator
Since e10256f43aea, the variable names collide.

Closes #12222
2023-04-17 10:19:43 +02:00
Cédric Krier 1d2f4d7163 Reuse on_change_with_result to convert result of Function field getter 2023-04-15 09:15:46 +02:00
Cédric Krier e74fe80df9 Convert instances in RPC call result for on_change_with on field
Since d142b33fa3ab0fe5af25957f90ee77fe7eee51b3 the on_change_with method can
return instances.

Closes #12217
2023-04-14 13:09:23 +02:00
Cédric Krier e444814cf7 Fill keyword arguments using dictionary to launch action 2023-04-12 18:27:55 +02:00
Cédric Krier 9e0ba4502d Do not set s nor p parameter to export URL if screen has no limit
Closes #12212
2023-04-12 18:40:49 +02:00
Cédric Krier fa2f85adbe Set limit attribute only if defined in URL
Closes #12211
2023-04-12 18:35:52 +02:00
Cédric Krier 8c53e10335 Update documentation link for Spanish SII certificate
Closes #12197
2023-04-10 10:48:44 +02:00
Cédric Krier 0233bfe8d6 Format using SQL Identifier type sequence name
The sequence functions are using string parameters so for case sensitive
sequence name we must pass a string containing double-quoting if necessary.

Closes #12194
2023-04-08 11:24:45 +02:00
Cédric Krier 4d950fc8e9 Do not quote sequence name coming from pg_get_serial_sequence
The result of the function is already quoted to be suitably formatted for
passing to the sequence functions.
2023-04-08 11:12:20 +02:00
Cédric Krier a35f2a5bc8 Use plural for posted moves in context 2023-04-16 19:07:51 +02:00
Cédric Krier e4729c4acd Normalize second currency label 2023-04-16 19:07:25 +02:00
Cédric Krier 97d9d573c0 Add plural on line instead of standalone 2023-04-14 09:38:59 +02:00
Cédric Krier 3c26cb725c Fix typo in account move template expression error message ID 2023-04-13 16:42:17 +02:00
Cédric Krier 228743d45b Use warehouse from sale and purchase line to fill tax rule pattern
Since 6efb525a7b23 the warehouse is always up to date for the line thanks to
the on_change_with getter.

Closes #12200
2023-04-11 23:38:33 +02:00
Cédric Krier d31d4dd554 Drop python 3.7, add python 3.11 for quality module 2023-04-12 00:19:44 +02:00
Cédric Krier d49f0ce8fc Set cron timezone with default value
Closes #12056
2023-04-11 00:12:33 +02:00
Cédric Krier a826d91015 Ensure reset password has at least the minimal length for password
Closes #12028
2023-04-11 00:08:28 +02:00
Cédric Krier 2fa03cc26c Remove timeout source to set watch cursor when RPC is being processed
Closes #12132
2023-04-08 17:21:40 +02:00
Cédric Krier a84cb9f07c Do not change account nor journal of invoice no more draft
Closes #12146
2023-04-08 16:36:38 +02:00
Cédric Krier 6b1a4a9f27 Do not slugify file extension when selecting file to save or create folder
Closes #12152
2023-04-08 16:11:36 +02:00
Christophe 034d46a50d Do not set unit prices for product without list and gross price
Closes #12044
2023-04-08 14:11:03 +02:00
Cédric Krier e3e8847c3c Use dates from context to compute account type amount
The general ledger dates are not good because they are defined to compute a
start and end amount.

Closes #12162
2023-04-08 14:31:25 +02:00
Cédric Krier 83b8037eca Limit debit and credit kind to line with debit and credit in aged balance
Closes #12193
2023-04-07 17:03:03 +02:00
Cédric Krier 61f2f749f4 Update model data also when old values are different from the current values
Closes #12190
2023-04-06 20:36:25 +02:00
Cédric Krier cb3fcf5d48 Do not strip monetary thousands separator
Closes #12191
2023-04-06 20:39:18 +02:00
Cédric Krier dd3db455f2 Drop python 3.7, add python 3.11 and generate XML coverage for account stock EU 2023-04-12 00:17:13 +02:00
Cédric Krier cc713a6951 Test extended field of intrastat declaration 2023-04-12 00:14:21 +02:00
Cédric Krier 081c9a9df9 Catch exception when finding fiscal year to compute extended intrastat
Since 783a99ec69c7 FiscalYear.find always raises an exception.

Closes #12205
2023-04-12 09:22:53 +02:00
Cédric Krier ace9beeab4 Log transition only for updated records
Closes #12202
2023-04-11 15:10:27 +02:00
Cédric Krier 3271996993 Set send invoices to SII from last period when renewing fiscal year
Closes #12067
2023-04-08 18:41:29 +02:00