Commit Graph

386 Commits

Author SHA1 Message Date
Weblate
04a1c1b23b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/
2023-03-15 15:17:54 +00:00
OCA-git-bot
70f8bca91b [ADD] setup.py 2023-03-15 11:46:23 +00:00
OCA-git-bot
1a18e9948f [UPD] README.rst 2023-03-15 11:46:22 +00:00
OCA-git-bot
d95cc80b57 [UPD] addons table in README.md 2023-03-15 11:46:22 +00:00
oca-ci
f8207a33a8 [UPD] Update contract.pot 2023-03-15 11:43:09 +00:00
OCA-git-bot
715370a486 Merge PR #887 into 16.0
Signed-off-by pedrobaeza
2023-03-15 11:39:42 +00:00
Wolfgang Pichler
10e9287cb6 [MIG] contract: Migration to 16.0 2023-03-15 12:38:45 +01:00
Wolfgang Pichler
c72ead9f67 [IMP] contract: pre-commit stuff 2023-03-15 12:38:45 +01:00
Pedro M. Baeza
8c269f062e [FIX] contract: Switch string > title in buttons
In v14, the `string` attribute of the buttons is shown directly in UI.
The tooltips are now put through `title` attribute. As that was the
original intention, let's switch `string` to `title`.
2023-03-15 12:38:45 +01:00
Víctor Martínez
8c00427d47 [IMP] contract: Set fixed start dates in test contracts 2023-03-15 12:38:45 +01:00
Mourad
1a9a2fdaac [FIX] contract: bug onchange date_start (comparison between bool and date) 2023-03-15 12:38:45 +01:00
Christopher Rogos
e79298dfb8 [IMP] Add link to contract in invoice chatter 2023-03-15 12:38:45 +01:00
Víctor Martínez
d381d11917 [IMP] contract: Set invoice_user_id field with Form() to apply the correct values of other fields (team_id for example).
TT39934
2023-03-15 12:38:45 +01:00
pere-aquarian
e4a84612dc Translated using Weblate (Spanish)
Currently translated at 91.7% (291 of 317 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/es/
2023-03-15 12:38:45 +01:00
Douglas Custódio
c4b6167a0e Translated using Weblate (Portuguese (Brazil))
Currently translated at 79.8% (253 of 317 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/pt_BR/
2023-03-15 12:38:45 +01:00
Víctor Martínez
56f4b44a5a [IMP] contract: Use _prepare_home_portal_values() function. 2023-03-15 12:38:45 +01:00
Wolfgang Pichler
a1b055ae84 Translated using Weblate (German)
Currently translated at 68.7% (218 of 317 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/de/
2023-03-15 12:38:45 +01:00
Grégory Moka Tourisme
aca5577657 Translated using Weblate (French)
Currently translated at 93.0% (295 of 317 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/fr/
2023-03-15 12:38:45 +01:00
Ignacio Buioli
bbfd083ea7 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (317 of 317 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/es_AR/
2023-03-15 12:38:45 +01:00
chandni299
ad929e2512 [15.0][IMP] contract : show tags with colors in the contract 2023-03-15 12:38:45 +01:00
Grégory Moka Tourisme
3390020f91 Translated using Weblate (French)
Currently translated at 93.3% (295 of 316 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/fr/
2023-03-15 12:38:45 +01:00
Ignacio Buioli
7bf498cb9e Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (316 of 316 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/es_AR/
2023-03-15 12:38:45 +01:00
João Marques
286399345f [FIX] contract: Remove noupdate in mail template data
TT29820
2023-03-15 12:38:45 +01:00
Alba Riera
9d173148ff [FIX] contract: change where security is given to group_account_invoice: from contract_sale to contract 2023-03-15 12:38:45 +01:00
Denis Roussel
5261c621d5 [FIX+IMP] contract: lots of things
- Improve invoice generation through cron
  Avoid too much sql queries by iterating on first search
  Avoid performances problems through invoices ids isntead
  of recordset
- Improve tests
  Adds multi company tests
- Add a generation type on contract
  Add a generation type on contract that allows to generate other
  document than invoice (e.g. sale order)
- Allows to get several functions to create recurring documents
- Set visibility on button to show invoices
- Add generation_type field
- Update button visibility
- Simplify test flow
- Use Odoo conventions for methods
- Add explicit cron create type for invoices
- Improve function call for cron recurring creates
- Improve multi-company tests / don't break former tests structure
- Fix forwardport from 14.0 #741
2023-03-15 12:38:45 +01:00
mariadforgeflow
e230ba9f0f [FIX] contract: add default_move_type in context 2023-03-15 12:38:45 +01:00
Ediz Duman
d8f90f2eeb Translated using Weblate (Turkish)
Currently translated at 91.0% (285 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/tr/
2023-03-15 12:38:45 +01:00
juliap98
a9220f27c4 Translated using Weblate (Catalan)
Currently translated at 100.0% (313 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/ca/
2023-03-15 12:38:45 +01:00
oca-git-bot
e41bfe34a3 [IMP] update dotfiles [ci skip] 2023-03-15 12:38:45 +01:00
Denis Roussel
0e3fbebbeb [FIX+IMP] contract: Several things
- Don't update recurring_next_date as computed
- Compute recurring_next_date for False values too + simplify compute as False values are already taken into account
  In get_next_invoice_date, False values are already taken into account, so, simplifying
  compute_recurring_next_date function.
- Add comment to remind updating method in next version
2023-03-15 12:38:45 +01:00
Ignacio Buioli
84ecec6b69 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (313 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/es_AR/
2023-03-15 12:38:45 +01:00
Noel estudillo
02123527aa Translated using Weblate (Catalan)
Currently translated at 96.8% (303 of 313 strings)

Translation: contract-15.0/contract-15.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-15-0/contract-15-0-contract/ca/
2023-03-15 12:38:45 +01:00
Jean-Charles Drubay
d673af70da ADJ: When generating invoices from the Wizard to create invoices manually, reraise any UserError with information about which contract triggered the exception to facilitate the investigation by accountants in case invoices are not generated automatically. 2023-03-15 12:38:44 +01:00
Víctor Martínez
0bc5082115 [IMP] contract: Add discount + price_subtotal fields to the contract lines in the portal view.
TT34117
2023-03-15 12:38:44 +01:00
Joan Mateu Jordi
804ee2ffc2 [15.0][IMP] modify production beta to stable 2023-03-15 12:38:44 +01:00
manu
fbc37b5db4 [FIX] contract: Avoid error in invoicing contracts crone 2023-03-15 12:38:44 +01:00
Jean-Charles Drubay
2cae7764c8 [MIG] contract: Migration to 15.0
Most changes are related to the switch from jinja to qweb in mail templates.

Also included:
- convert deprecated onchange that returns a domain and other deprecation warnings
  (see below)
- Add migration scripts from version 14.0 (force the update of the mail templates)
- Fix warnings from pre-commit checks

Fixes depreciation warnings:

- onchange method ContractAbstractContractLine._onchange_product_id returned
  a domain, this is deprecated
- SavepointCase is deprecated:
  https://github.com/odoo/odoo/blob/15.0/odoo/tests/common.py#L742
- assertDictContainsSubset: According to:
  https://stackoverflow.com/questions/20050913/python-unittests-assertdictcontainssubset-recommended-alternative
2023-03-15 12:38:44 +01:00
Jean-Charles Drubay
7f620ee1e6 [IMP] contract: black, isort, prettier 2023-03-15 12:38:44 +01:00
Pedro Castro Silva
8ce3152fec Translated using Weblate (Portuguese)
Currently translated at 80.4% (247 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/pt/
2023-03-15 12:38:44 +01:00
pere-aquarian
507b40e855 Translated using Weblate (Catalan)
Currently translated at 98.3% (302 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/ca/
2023-03-15 12:38:44 +01:00
João Marques
052b34543d [FIX] contract: Fix invoice creation and salesperson assignment
In v13, the `user_id` field is a related field to `invoice_user_id`, that defaults to the environment user (`self.env.user`).
Therefore, if we try to create an invoice just by passing `user_id`, it would be overwritten by the default computation of `invoice_user_id`.
This fixes it by passing the correct field and data.

TT31715
2023-03-15 12:38:44 +01:00
Alexis de Lattre
150fa46ced [FIX] contract: fix an obvious crash when self is a multi-recordset 2023-03-15 12:38:44 +01:00
Ediz Duman
b4659078b3 Translated using Weblate (Turkish)
Currently translated at 72.9% (224 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/tr/
2023-03-15 12:38:44 +01:00
Pedro M. Baeza
29165e2854 [FIX] contract: Cleanup values on line when invoicing
It seems that having several fields returned by `Form` as `False` that
are related to one2many inverse field, makes Odoo ORM mad, and get to
an unbalanced move when generating the invoice.

Cleaning these values assures to work without problems.

Not able to provide a regression test, as I don't get to reproduce the
conditions to happen in test environment, but the patch is safe and
harmless anyways.

TT30842
2023-03-15 12:38:44 +01:00
Ignacio Buioli
964f3e5403 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (307 of 307 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/es_AR/
2023-03-15 12:38:44 +01:00
OCA Transbot
98fb160b3a Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/
2023-03-15 12:38:44 +01:00
OCA-git-bot
a2815a1281 contract 14.0.1.2.0 2023-03-15 12:38:44 +01:00
Ignacio Buioli
e32cf60343 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (306 of 306 strings)

Translation: contract-14.0/contract-14.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-contract/es_AR/

[UPD] Update contract.pot
2023-03-15 12:38:44 +01:00
Víctor Martínez
e72f0fcba3 [IMP] contract: Improve code to show recurring_rule_type from contract line in portal + [FIX] Force add access_token in "View contract" button from contract modification mail 2023-03-15 12:38:44 +01:00
Denis Roussel
b79b83f0d5 [13.0][FIX] contract: Set layout for section and note in portal template 2023-03-15 12:38:44 +01:00