Commit Graph

462 Commits

Author SHA1 Message Date
Dmytro Katyukha
f9414c5d26 Update addon versions
- contract
- contract_variable_quantity
2024-01-05 11:07:38 -03:00
Dmytro Katyukha
6e20e3afd5 [FIX] analytic invoice/contract lines inheritance
Bug description
---------------

`account.analytic.contract.line` inherits
`account.analytic.invoice.line`

`account.analytic.invoice.line` defines field `analytic_account_id`:
   - comodel='account.analytic.account'

`account.analytic.contract.line` redefines field `analytic_account_id`:
   - comodel='account.analytic.contract'

On attempt to extend `account.analytic.invoice.line` model adding
field that depends on `analytic_account_id.date_start`
Odoo fails to update, because it adds this field to
`account.analytic.contract.line` through inheritance,
and `account.analytic.contract` model have no this field.

What is done
------------

Change inheritance order:
- `account.analytic.invoice.line` inherits
`account.analytic.contract.line`
- no file renames at this stage (this wil be done in next commit)
2024-01-05 11:07:38 -03:00
Pedro M. Baeza
fa336d01a8 [IMP] contract_variable_quantity: Recompute price when changing qty
If you have contract lines with automatic price and your pricelist
contains different prices per quantity, the price is not changed
when computing quantity.

This PR fixes this.
2024-01-05 11:07:38 -03:00
Pedro M. Baeza
7b83ca7656 [IMP] contract_variable_quantity: Make name translatable 2024-01-05 11:07:38 -03:00
Carlos Dauden
c7bc7f02c5 [IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines 2024-01-05 11:07:38 -03:00
Pedro M. Baeza
72f528734c [FIX] contract_variable_quantity: Correct README menus references 2024-01-05 11:07:38 -03:00
Carlos Dauden
df2e1eba9e [MIG] contract_variable_quantity: Migration to 11.0 2024-01-05 11:07:38 -03:00
Moisés López
c8c80140f7 [FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed 2024-01-05 11:07:38 -03:00
Dave Lasley
a563f8962b [10.0][IMP] Add variable qty to contract template view (#66)
* [IMP] Add variable qty to contract template view

* Bump minor version
2024-01-05 11:07:38 -03:00
Dave Lasley
ae3cbbecdd [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2024-01-05 11:07:38 -03:00
Dave Lasley
1e97c50393 [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2024-01-05 11:07:38 -03:00
Pedro M. Baeza
4a8af7a0a4 [MIG] Rename manifest files 2024-01-05 11:07:38 -03:00
Pedro M. Baeza
bca861b5a0 [MIG] Make modules uninstallable 2024-01-05 11:07:38 -03:00
Carlos Dauden
ab739554fd [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2024-01-05 11:07:38 -03:00
Pedro M. Baeza
93ce330900 [IMP] contract_variable_quantity: Spanish translation 2024-01-05 11:07:38 -03:00
Pedro M. Baeza
4ee23da46d [IMP] contract_variable_quantity: Screenshot 2024-01-05 10:33:53 -03:00
Pedro M. Baeza
7c282e0157 [ADD] contract_variable_quantity:
=================================================
Variable quantity in contract recurrent invoicing
=================================================

With this module, you will be able to define in recurring contracts some
lines with variable quantity according a provided formula.

Configuration
=============

* Go to Sales > Configuration > Contracts > Formulas (quantity).
* Define any formula based on Python code that stores at some moment a
  float/integer value of the quantity to invoice in the variable 'result'.

  You can use these variables to compute your formula:

  * *env*: Environment variable for getting other models.
  * *context*: Current context dictionary.
  * *user*: Current user.
  * *line*: Contract recurring invoice line that triggers this formula.
  * *contract*: Contract whose line belongs to.
  * *invoice*: Invoice (header) being created.

Usage
=====

To use this module, you need to:

* Go to Sales -> Contracts and select or create a new contract.
* Check *Generate recurring invoices automatically*.
* Add a new recurring invoicing line.
* Select "Variable quantity" in column "Qty. type".
* Select one of the possible formulas to use (previously created).
2024-01-05 10:33:53 -03:00
Weblate
11c08aacc3 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/
2024-01-05 10:31:25 +00:00
OCA-git-bot
80fdfc7393 [BOT] post-merge updates 2024-01-05 10:31:13 +00:00
oca-ci
f2d4f8c031 [UPD] Update contract.pot 2024-01-05 10:28:01 +00:00
OCA-git-bot
234b4b172b Merge PR #1019 into 16.0
Signed-off-by pedrobaeza
2024-01-05 10:25:04 +00:00
fkantelberg
f7c4b5c71f [MIG] contract: Remove analytic_account_id and add migration 2024-01-05 11:03:00 +01:00
fkantelberg
4924db528f [FIX] Show analytic distribution and hide analytic account 2024-01-04 11:07:12 +01:00
OCA-git-bot
cb81c7d021 [BOT] post-merge updates 2024-01-04 09:49:55 +00:00
OCA-git-bot
f415e20aaf Merge PR #1026 into 16.0
Signed-off-by pedrobaeza
2024-01-04 09:46:52 +00:00
Adriano Prado
fbbc0e38f9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (1 of 1 strings)

Translation: contract-16.0/contract-16.0-contract_invoice_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract_invoice_start_end_dates/pt_BR/
2023-12-27 15:33:40 +00:00
Adriano Prado
c8ed3954a7 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (12 of 12 strings)

Translation: contract-16.0/contract-16.0-contract_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract_sale_generation/pt_BR/
2023-12-27 15:33:39 +00:00
mymage
5598619b70 Translated using Weblate (Italian)
Currently translated at 85.7% (270 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-12-24 19:40:34 +00:00
Rémi
4ed8875e89 Translated using Weblate (French)
Currently translated at 100.0% (315 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/fr/
2023-12-21 12:34:33 +00:00
Rémi
0b408b9d5f Translated using Weblate (French)
Currently translated at 97.4% (307 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/fr/
2023-12-20 18:36:48 +00:00
Francesco Foresti
a5300ea6c3 Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-12-15 17:36:58 +00:00
mymage
1e79cb088c Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-12-13 12:34:21 +00:00
mymage
a657a08ead Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-30 22:34:04 +00:00
mymage
d5f7585d2e Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-27 14:35:38 +00:00
mymage
f34b842680 Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-24 17:36:30 +00:00
mymage
3404095be1 Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-23 13:37:36 +00:00
mymage
0dfbd7b3db Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-17 17:35:05 +00:00
mymage
98ca420b4c Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-14 18:36:37 +00:00
Thijs van Oers
070e35a849 Translated using Weblate (Dutch)
Currently translated at 90.4% (285 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/nl/
2023-11-14 13:36:28 +00:00
Alessandro Fiorino
f27aefee28 Translated using Weblate (Italian)
Currently translated at 84.7% (267 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-08 21:38:41 +00:00
OCA-git-bot
0fda3e471b [BOT] post-merge updates 2023-11-08 21:21:47 +00:00
OCA-git-bot
e78a02e4e2 Merge PR #1021 into 16.0
Signed-off-by pedrobaeza
2023-11-08 21:17:34 +00:00
Jose Suniaga [Vauxoo]
6c0f22efe2 [FIX] contract: removed dateutil from dependencies
Since Odoo 16.0 has included dateutil on its dependencies,
loading dateutil from here is generating Warning in Odoo.sh
deployments
2023-11-08 13:41:44 -06:00
Alessandro Fiorino
4a15dbb7ca Translated using Weblate (Italian)
Currently translated at 63.1% (199 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-11-08 18:39:11 +00:00
mymage
504585214f Translated using Weblate (Italian)
Currently translated at 60.0% (189 of 315 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-10-31 09:38:35 +00:00
Weblate
8539264fdc 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-10-29 07:10:12 +00:00
Adriano Prado
a515184f0b Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (316 of 316 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/pt_BR/
2023-10-29 07:10:09 +00:00
mymage
4994fa32b7 Translated using Weblate (Italian)
Currently translated at 59.8% (189 of 316 strings)

Translation: contract-16.0/contract-16.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract/it/
2023-10-29 07:10:09 +00:00
Adriano Prado
89589804e4 Added translation using Weblate (Portuguese (Brazil)) 2023-10-29 07:10:09 +00:00
oca-ci
7204d0719a [UPD] Update contract.pot 2023-10-27 22:21:08 +00:00