Cédric Krier
47df4da88f
Add statement_timeout to postgis get_connection
...
173ecc4f452d add a new parameter to get_connection so it must also be defined
for postgis.
2023-12-01 12:03:55 +01:00
Cédric Krier
e195a0fb93
Add DatabaseTimeoutError to postgis backend
...
173ecc4f452d add a new database error so it must also be defined for postgis.
2023-12-01 11:32:57 +01:00
Cédric Krier
2cc7faec53
Update tutorial to use PEP517 when installing in editable mode
...
Closes #12701
2023-11-20 00:00:26 +01:00
Cédric Krier
fd652d4b4f
Update documentation of sale opportunity
2023-11-05 21:35:48 +01:00
Cédric Krier
24fc9d1caa
Open sales converted from opportunity
2023-11-05 00:02:18 +01:00
Cédric Krier
bf6cb46170
Restrict convert button of sale opportunity to sale group
2023-11-05 00:03:21 +01:00
Cédric Krier
87470e9180
Fill sale with default addresses and payment term if not filled on opportunity
...
Closes #12671
2023-10-26 09:58:49 +02:00
Cédric Krier
e58a569f23
Do not force value for single list on multi-value field
...
Fields based on multi-value must not be forced to the single value of a list.
Closes #12737
2023-11-14 00:00:15 +01:00
Cédric Krier
ba7badec6e
Retry to send email when server unexpectedly disconnect
...
Closes #12790
2023-12-01 09:54:40 +01:00
Cédric Krier
b7fe8b8c1a
Always round unit price when recomputing it for stock move
...
Closes #12787
2023-11-30 15:59:31 +01:00
Cédric Krier
e63fe001cb
Do not scroll into view empty element
...
Closes #12783
2023-12-03 01:51:48 +01:00
Cédric Krier
e70d24d375
Return values instead of changed result when testing payment term
...
Since 0db956eb2505 the returned value of on_change_with is set on the field.
Closes #12775
2023-11-27 12:43:31 +01:00
Cédric Krier
4779c72913
Limit size of database cache dump to 40 chars
...
Each backend has their limit. 40 chars is picked as limit to match the size of
mercurial hash.
Closes #12754
2023-11-26 17:12:40 +01:00
Cédric Krier
459795e2f3
Do not fail on missing colli_tracking_number in Sendcloud parcels
...
Closes #12782
2023-11-29 15:12:05 +01:00
Cédric Krier
3dc49cc1ae
Set product to None on supplier invoice when product name is not found
...
Closes #12774
2023-11-25 21:28:50 +01:00
Cédric Krier
c6335a368c
Update trees of chart of accounts with 2 passes
...
When a new parent is added to a tree template like types, taxes or tax codes,
the corresponding record of the new template parent is not yet created.
So we need to use a default value for the parent and update again the tree
after creating the new records.
Closes #12755
2023-11-16 16:32:43 +01:00
Cédric Krier
3af76aa548
Select first record when refreshing attachment preview
...
Since ab82d479eca1 no record is set when displaying screen.
Closes #12756
2023-11-16 18:23:14 +01:00
Cédric Krier
1b1bbc5390
Use screen methods to activate or not the next/previous buttons of attachment preview
...
Closes #12756
2023-11-16 18:22:04 +01:00
Cédric Krier
c3a8f6bea9
Fix call to Sao.Logger.error
...
Closes #12778
2023-11-27 21:35:24 +01:00
Cédric Krier
b93f265fcd
Submit form only if scan_code is submit
...
Close #12764
2023-11-20 20:41:34 +01:00
Cédric Krier
cd18803452
Use list price instead of gross price in sale reporting
...
The sales are computed without taxes so the sales from point should use the
same kind of price.
Closes #12703
2023-11-03 13:00:12 +01:00
Cédric Krier
b55e8c71ec
Do not remove starting wildcard when searching bank account number
...
The start number of bank account are often the same for account from the same
bank.
Closes #12769
2023-11-22 11:01:31 +01:00
Cédric Krier
00f6195b48
Enforce uniqueness only on bank account number active
...
Closes #12768
2023-11-21 18:07:11 +01:00
Cédric Krier
b794bcb0fe
Use production warehouse to select product location
...
Closes #12765
2023-11-21 11:35:44 +01:00
Cédric Krier
7e9d69f07f
Set state to done when all lines of sale or purchase are cancelled
...
So when the shipment and invoice state are None and all lines have an 100%
progress, then the order should be considered as done.
Closes #12698
2023-11-01 16:37:23 +01:00
Cédric Krier
da3c68d0c0
Add invoice progress on sale and purchase line
2023-11-01 16:34:42 +01:00
Cédric Krier
92a3ddb9ee
Set shipment state of sale and purchase to None when all stock moves are cancelled
...
Closes #12697
2023-11-01 16:32:41 +01:00
Cédric Krier
fe921d6406
Support writing None on Shopify identifier
...
Closes #12760
2023-11-20 12:04:37 +01:00
Cédric Krier
88dc4b90dd
Prevent to delete lines and origins of statements not cancelled or in draft
...
Closes #12678
2023-10-28 14:31:35 +02:00
Cédric Krier
1b5fa9a892
Clear tax identifiers on invoice when they are no more valid
...
Closes #12748
2023-11-15 11:09:44 +01:00
Cédric Krier
41df1f1d7e
Do not expand checkboxes group in party form
...
This gives more space for the name and code.
2023-11-09 15:11:50 +01:00
Cédric Krier
37e43d6573
Optimize update of customer move when drop shipment is set to waiting
...
By using One2Many fields, it is possible to avoid custom search and use nested
single loop to update the customer moves.
2023-10-25 18:11:34 +02:00
Cédric Krier
4344f77ac5
Do not convert width and height URL parameters of product image into boolean
...
Since 8cba7039bc3c there are 2 new arguments w and h.
Closes #12745
2023-11-14 15:07:54 +01:00
Cédric Krier
84d4f09f56
Increase the size of expander
...
Closes #12733
2023-11-11 19:37:53 +01:00
Cédric Krier
adea79e356
Prevent switching row when double click on expander
...
Closes #12732
2023-11-11 19:34:27 +01:00
Cédric Krier
389d7a1143
Do not execute action on row active if there is no selected id
...
Closes #12731
2023-11-11 19:31:35 +01:00
Cédric Krier
fb034737db
Set grab cursor only on draggable-handle class
...
Closes #12730
2023-11-11 19:27:03 +01:00
Cédric Krier
a918b8245d
Hide tree-menu column on sao menu
...
Closes #12729
2023-11-11 19:24:19 +01:00
Cédric Krier
7b454b7284
Set height of street text widget for 3 lines
...
Closes #12723
2023-11-09 10:07:47 +01:00
Cédric Krier
e6d8dbd359
Use default access for ModelSQL based on table_query when method is extended
...
When the create/write/delete methods are extended, we should assume that
developer has implemented such access.
Closes #12757
2023-11-16 18:55:47 +01:00
Cédric Krier
ca253a388c
Do not include locale of build system
...
They should not be needed as tryton uses only its own strings.
2023-11-04 19:52:58 +01:00
Cédric Krier
f25c90e284
Do not copy tryton data and plugins in frozen build
...
Since d94c92c1de67 the library is no more compressed so those package data are
already in the usual place.
2023-11-04 19:51:52 +01:00
Cédric Krier
95fae18a2a
Include shared libraries in lib folder for darwin build
...
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we must include shared libraries in the lib folder to be available.
2023-11-04 19:48:03 +01:00
Cédric Krier
aba92d0126
Replace etc directory by share for frozen build
...
cx_Freeze 6.15.10 store included files in Resources folder and make a symlink
in MacOS folder for lib and share.
So we need to store etc content in share to be available.
2023-11-04 19:44:09 +01:00
Cédric Krier
3a05f7b69b
Clean temporary files and directories when exiting tryton
...
Closes #9507
2023-11-06 19:33:16 +01:00
Cédric Krier
5d2bc18e3d
Display fields of payment term delta in application order
...
The user may not know the order in which the relativedelta operations are
applied.
2023-11-02 16:21:25 +01:00
Cédric Krier
7270cc86fa
Remove non updated targets of xxx2Many when importing data
...
Closes #12625
2023-10-09 11:42:36 +02:00
Cédric Krier
f4ca6c4648
Document how account journal are chosen
2023-11-07 00:35:26 +01:00
Cédric Krier
97f432e06f
Fix typo in sale documentation
2023-11-16 09:24:27 +01:00
Cédric Krier
a88682d1a6
Fallback to move date when ordering by maturity date and it is empty
...
Closes #12722
2023-11-09 09:40:49 +01:00
Cédric Krier
3ffd756e7f
Select first visible siblings when page is hidden
...
We need to search for all siblings because the next page may also be
invisible.
Closes #12553
2023-11-06 18:53:39 +01:00
Cédric Krier
4bc74de579
Remove check against move when deleting account period
...
The period on the move restrict on delete of the foreign key.
2023-11-06 15:46:25 +01:00
Cédric Krier
592edc13dd
Allow modifying account period dates with account moves
...
As long as the existing moves has still a date inside the new period dates.
Closes #12667
2023-11-06 15:44:47 +01:00
Cédric Krier
91f4c6b2b8
Check dates of periods when changing fiscal year dates
...
Closes #12667
2023-11-06 16:19:33 +01:00
Cédric Krier
fac8bb3e18
Always trigger default branch on readthedocs
...
This allows readthedocs to detect new branches:
https://github.com/readthedocs/readthedocs.org/issues/9106
Closes #12694
2023-10-31 23:04:37 +01:00
Cédric Krier
6b2aa74ce5
Preserve product image ratio
...
Closes #12744
2023-11-14 14:18:56 +01:00
Cédric Krier
e4702d47ba
Do not set offset in counting domain of link
...
173ecc4f452d moved the offset parameter into the domain.
Closes #12725
2023-11-09 15:03:32 +01:00
Cédric Krier
f8a6d08b20
Test extension of invoice and shipment grouping fields
2023-11-08 11:37:38 +01:00
Cédric Krier
84318913c7
Incoterm tests depend on sale shipment grouping not sale invoice group
2023-11-08 11:36:58 +01:00
Cédric Krier
b1a3e23951
Extend grouping fields with a list
...
4e84027dbc2e updated the grouping fields method to receive the grouped
instance but it did not adapt to the returned type which is a list.
Closes #12718
2023-11-08 00:09:37 +01:00
Cédric Krier
7fb5a0c6b8
Do not compute internal quantity for stock move created without product nor unit
...
Closes #12716
2023-11-06 18:02:23 +01:00
Cédric Krier
d9ace5f731
Properly use resources files from importlib
...
Closes #12706
2023-11-04 19:32:22 +01:00
Cédric Krier
258912e273
Allow to freeze tryton on OS without python
...
Use python version defined in the setup.py shebang instead of the generic
python.
2023-11-04 14:05:12 +01:00
Cédric Krier
d35d519ea1
Do not try to compute promotion quantity for lines without type line
...
Closes #12351
2023-11-02 16:42:45 +01:00
Cédric Krier
f8ca4ce512
Avoid race condition when making directories for database cache
2023-11-01 13:27:36 +01:00
Cédric Krier
5ff3893f50
Avoid race condition when making configuration directory of tryton
2023-11-01 13:27:09 +01:00
Cédric Krier
ee8782f102
Avoid race condition when making directories for filestore
...
Closes #12696
2023-11-01 13:26:37 +01:00
Cédric Krier
3e49835516
Update documentation link for UNECE Recommendation N° 20
...
Closes #12695
2023-11-01 10:06:00 +01:00
Cédric Krier
783e4364af
Do not translate data type of inbound email
2023-10-21 23:21:28 +02:00
Cédric Krier
ea16e4e071
Use secondary instead of second in help of Purchase Secondary UoM
2023-10-21 17:21:27 +02:00
Cédric Krier
f20e941597
Display Braintree transaction ID for refund on the form
2023-10-18 13:13:27 +02:00
Cédric Krier
294f666b0d
Display Stripe refund ID on the form
2023-10-18 13:12:57 +02:00
Cédric Krier
bf9bfdcd8d
Test JSON-RPC response ID
2023-10-22 12:19:29 +02:00
Cédric Krier
8f7ce67b20
Translate invalid response ID message
2023-10-22 12:19:54 +02:00
Cédric Krier
6ea6082b78
Wrap long label to 80 chars
...
Closes #12618
2023-10-05 18:29:20 +02:00
Cédric Krier
4556b58e57
Set button sensitive on One2Many widget after screen display promise is done
...
The method to set button sensitive needs the view type to be set since
7d8c4076363f.
Closes #12691
2023-10-31 21:57:09 +01:00
Cédric Krier
816dd6f549
Do not union empty dict as payments when creating moves without statements
...
Closes #12689
2023-10-30 23:45:52 +01:00
Cédric Krier
3175c99f26
Use list to declare requirement for tryton with sound
...
Closes #12690
2023-10-30 23:48:16 +01:00
Cédric Krier
689382daeb
Do not fail when parsing invalid Decimal value in number entry
...
Closes #12692
2023-10-31 21:42:11 +01:00
Cédric Krier
25f2f35fea
Round with decimal digits when applying factor on float and numeric field
...
Closes #12692 #12669
2023-10-31 21:41:23 +01:00
Cédric Krier
38da6a0451
Increase version number
2023-10-30 18:51:13 +01:00
Cédric Krier
2c482926ee
Add tag 7.0.0
2023-10-30 18:17:51 +01:00
Cédric Krier
65f477f731
Prepare release 7.0.0
2023-10-30 18:17:32 +01:00
Cédric Krier
c9836a6b9b
Do not test multiple partial payments in test scenario
...
The feature is now limited to Shopify Plus organizations.
Closes #12684
2023-10-28 18:55:23 +02:00
Cédric Krier
76c00d3133
Update amount when changing unit or taxes of purchase line
...
Closes #12648
2023-10-29 14:23:34 +01:00
Cédric Krier
5b27ea26ce
Update amount when changing unit or taxes of sale line
...
Closes #12648
2023-10-29 14:23:10 +01:00
Cédric Krier
f1ab6513b3
Iterate over removed and deleted records when adding record to group
...
In Javascript for...in iterate over properties but we want to iterate over
values with for...of. Otherwise record added back is not un-removed or
un-deleted.
Closes #12663
2023-10-29 13:49:30 +01:00
Cédric Krier
204a5d7625
Set current record explicitly after loading records on screen
...
Since ab82d479eca1 screen load does not set current record but some widget
relies on it. So they must set explicitly the current record they need.
Also when a current record is not needed, there is no need to call display
after loading because load already calls display.
2023-10-29 12:59:58 +01:00
Cédric Krier
04af335284
Copy alternative payees of invoice if it is the only party on lines to pay
...
Only one alternative payee is permitted on draft invoice so we can copy it
only if there is only one and it is the one that was already set when posting
the invoice (only party that appears in the lines to pay).
Closes #12528
2023-10-28 14:04:23 +02:00
Cédric Krier
71771568e3
Apply dualmethod decorator to post method of account move
...
Since efdb98eb55e5 the original method is a dualmethod.
Closes #12682
2023-10-28 10:56:33 +02:00
Cédric Krier
87013b68f9
Make end amount read only on non open cash session
...
Closes #12677
2023-10-28 14:20:52 +02:00
Cédric Krier
1f73ac4d03
Make transfers read only on non open cash session
...
Closes #12677
2023-10-28 14:20:35 +02:00
Cédric Krier
d9307d006e
Hide payment buttons for line reconciled and of payment kind
...
It is not allowed to make a draft payment for a line that is reconciled.
Closes #12681
2023-10-28 10:52:41 +02:00
Cédric Krier
7105268094
Do not display in invoice report lines to pay that have been reconciled
...
Since f880d0a6315f the invoice report can be refreshed so only the actual
lines to pay should be displayed.
Closes #12675
2023-10-28 10:47:37 +02:00
Cédric Krier
35cff3c11c
Update statement lines amount from invoice when changing origins
...
2b9a72775e4c made the change for on_change_lines but forgot to also update
on_change_origins.
Closes #12672
2023-10-26 17:58:18 +02:00
Cédric Krier
70dcf79404
Check access without and with domain rule at the same time for read and write
...
For read and write operation, we must first check without domain rule to
ensure the ids exist before testing with the domain rules.
Closes #12668
2023-10-25 16:27:58 +02:00
Cédric Krier
e529c624f5
Disable switch button on non form view without selected record
...
This prevents to switch to a form view without a record.
2023-10-25 13:36:40 +02:00
Cédric Krier
1ab2948473
Do not set current record when displaying screen
...
Changing the current record while displaying trigger record_message which
calls set_buttons_sensitive. As the view is not yet updated, it is considered
as modified and the state of the buttons are no more valid.
Closes #12664
2023-10-25 12:22:31 +02:00
Cédric Krier
33de40f77b
Test to_date in context to get dates for general ledger
...
1b3d9d7a758f added the wrong test to exclude period and dates.
Closes #12629
2023-10-21 16:21:40 +02:00
Cédric Krier
c577fad900
Update translations [skip ci]
2023-10-28 14:15:23 +02:00