Commit Graph
53 Commits
Author SHA1 Message Date
Cédric Krier 371c01984a Use BIGINT for the party code digit and limit its size to 18 digits
Closes #14761
2026-04-09 19:20:38 +02:00
Nicolas Évrard 1c98320ccc Call on_modification on each Model with a replaced party
Closes #14684
2026-03-16 18:42:56 +01:00
Cédric Krier 226c4e63a6 Rename party identifier si_businessid into si_maticna
The identifier was added using the alias before 3dc08a936ef7.
2026-04-01 14:19:20 +02:00
Cédric Krier a51a6249c0 Add attn to address
Closes #14633
2026-02-27 12:55:11 +01:00
Cédric Krier b0ff152120 Format the party's identifier codes
Closes #14485
2026-01-16 16:56:47 +01:00
Cédric Krier d5d7eee3b9 Add Senegal Tax Number identifier 2026-01-11 12:12:51 +01:00
Cédric Krier 8b25d8c10e Add Azerbaijan Tax Number identifier 2026-01-11 12:10:00 +01:00
Cédric Krier 5540c9c6b9 Add French Trade Registration Number identifier 2026-01-11 12:08:42 +01:00
Cédric Krier 6f83c5b9b0 Add Mozambique Tax Number identifier 2026-01-11 11:59:43 +01:00
Cédric Krier c6ae81593b Use th_moa as tax identifier instead of th_tin 2026-01-11 11:57:47 +01:00
Cédric Krier 7bf7ba9694 Add Russian Primary State Registration Number identifier 2026-01-11 11:54:19 +01:00
Cédric Krier 3428e53de6 Add Spanish Activity Establishment Code identifier 2026-01-11 11:53:14 +01:00
Cédric Krier f58722b726 Add Belgian Social Security Number identifier 2026-01-11 11:50:56 +01:00
Cédric Krier cb1f927569 Add Slovenian Corporate Registration Number identifier 2026-01-11 11:49:22 +01:00
Cédric Krier 1b83f7c063 Set required on value of party's contact mechanism
Closes #14563
2026-01-30 11:20:26 +01:00
Cédric Krier 8ef2cc9b70 Do not notify for duplicate identifier from the same party
Closes #14434
2025-12-17 16:13:44 +01:00
Cédric Krier f18bb91e49 Use better labels for the Belgian VAT and business number 2025-12-06 09:08:20 +01:00
Cédric Krier 72d637cec9 Test if field_names is None instead of empty in ModelStorage hooks
Closes #14382
2025-11-21 11:50:54 +01:00
Adrià Tarroja Caubet 5525b195f3 Add cy_vat as tax identifier type
Closes #14381
2025-11-21 11:28:54 +01:00
Cédric Krier 6e9981228a Add edocument_ubl module 2025-11-14 16:36:06 +01:00
Cédric Krier 7c90b22b75 Add payment references to invoices 2025-09-30 00:11:31 +02:00
Nicolas Évrard 9839c0902d Add test that fields in __access__ are required
Closes #14261
2025-09-29 13:16:49 +02:00
Cédric Krier 0d1da7c1b4 Add structured address 2025-01-25 13:21:34 +01:00
Cédric Krier 5aeff66acd Use ModelStorage hooks instead of extending create/write/delete 2025-04-06 00:14:17 +02:00
Cédric Krier 1772caec90 Clean migrations for series before 6.0 2025-01-04 00:19:42 +01:00
Nicolas Évrard cbdad75620 Remove old-style of super() calls 2025-04-04 00:45:18 +02:00
Cédric Krier 77bb47a3a4 Make field_names optional in Model.default_get 2024-12-26 16:08:18 +01:00
Cédric Krier 6ecd73b529 Update default_get signature to add with_default parameter
ba6b8ce0e692 extended the signature but some modules must be updated to follow
the new signature.
2024-12-26 16:16:48 +01:00
Cédric Krier 44b55e28f4 Use party access for address, contact mechanism and identifier 2024-11-08 16:26:01 +01:00
Maxime Richez 822ef93cd7 Add Brazilian, Canadian and Croatian tax identifiers
Closes #13678
2024-12-12 23:45:51 +01:00
Maxime Richez b502f39d6e Replace co_rut for co_nit as tax identifier
Closes #13679
2024-11-13 15:50:38 +01:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier 911861837a Group generation of party code at creation 2024-08-25 10:58:36 +02:00
Cédric Krier 8f96e4af72 Unify email terminology
Closes #13463
2024-08-22 09:52:06 +02:00
Cédric Krier a2dfc4455b Refine index definition
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Cédric Krier 642c3cd8db Add United Kingdom Unique Taxpayer Reference identifier
Closes #11870
2024-07-18 17:01:15 +02:00
Adrià Tarroja Caubet 06778fb081 Fix internal for Uruguay Tax Number
Closes #12941
2024-07-18 16:38:51 +02:00
Adrià Tarroja Caubet 2ae871ae9f Add more tax identifiers
Closes #12940
2024-07-18 17:12:02 +02:00
Cédric Krier bf70e12f8f Remove print statement when catching check vies exceptions 2024-05-23 14:23:52 +02:00
Cédric Krier 1ad42b265f Define generic getter and searcher for identifier of party 2024-01-19 23:35:21 +01:00
Cédric Krier fa7ec2eecd Increase transaction counter when erasing party
As the erase is done using direct SQL query, the counter is not increased so
there is no log event created because the wizard use the counter to determine
if there were some modification and thus create a log entry.

Closes #13002
2024-02-05 18:57:28 +01:00
Cédric Krier ce530c6c0b Remove custom table names 2023-12-26 12:18:00 +01:00
Hartmut Goebel c60534e7ff Handle SOAP errors in EU Check Vies service
When introducing CheckVIES wizard in 7c90d7100f10, it was based on module
'vatnumbers' which returned an XML tree where we needed to pick the
'faultstring' from.
Since aeb2d1398456 it uses 'stdnum', which uses either 'zeep', 'suds' or
'pysimplesoap' as backend, all of which provide the faultstring in the
exception arguments. Unfortunately 'suds' puts it into 'args[1]', thus a loop
is required.

Also add missing error-codes from EU Check Vies service.

Closes #11147
2024-02-16 09:51:05 +01:00
Cédric Krier bfbab59ebf Use usage from context for default contact mechanism on party 2024-01-04 18:48:14 +01:00
Cédric Krier 6714a94b28 Autocomplete party from European VAT number 2023-09-30 16:14:33 +02:00
Cédric Krier 4bdad83247 Use vat alias for party identifier 2023-09-26 23:46:13 +02:00
Blaž Bregar 170f12be30 Added new identifiers from stdnum 1.19 2023-09-10 10:11:16 +00:00
Blaž Bregar c4fb1ee148 Add new identifiers up to python-stdnum 1.18
Closes #12275
2023-08-05 18:29:01 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 1aa9226401 Publish convert_from method
Closes #9007
2023-03-23 00:33:22 +01:00