Commit Graph

498 Commits

Author SHA1 Message Date
sbejaoui
15c7ba4183 [FIX] fix unit tests 2024-07-22 11:49:58 +02:00
sbejaoui
cbfc082b75 [FIX] - Fix unit tests 2024-07-22 11:49:58 +02:00
sbejaoui
140c59fd96 [IMP] - Skip zero should ignore lines with qty zero even for fixed qty 2024-07-22 11:49:58 +02:00
Thomas Binsfeld
ff5f2448b6 [REF] Contract: invoice in prepare_invoice_line is optional 2024-07-22 11:49:58 +02:00
sbejaoui
786edc973a [IMP] - refresh contract_variable_quantity.pot 2024-07-22 11:49:58 +02:00
sbejaoui
0e5a5af7c5 [IMP] - Adapt contract_variable_quantity to contract new views 2024-07-22 11:49:58 +02:00
sbejaoui
fab1e31bfd [IMP] - Add ace-widget with python mode 2024-07-22 11:49:58 +02:00
sbejaoui
f909cadc2b [IMP] Adapt unit test 2024-07-22 11:49:58 +02:00
sbejaoui
c364f5268f [MIG] contract_variable_quantity: Migration to 12.0 2024-07-22 11:49:58 +02:00
Dmytro Katyukha
ef2e49b170 Update addon versions
- contract
- contract_variable_quantity
2024-07-22 11:49:58 +02:00
Dmytro Katyukha
bd9bccdaa9 [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-07-22 11:49:58 +02:00
Pedro M. Baeza
a49f838a63 [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-07-22 11:49:58 +02:00
Pedro M. Baeza
c529980e42 [IMP] contract_variable_quantity: Make name translatable 2024-07-22 11:49:58 +02:00
Carlos Dauden
aea6200f7e [IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
50a67bb705 [FIX] contract_variable_quantity: Correct README menus references 2024-07-22 11:49:58 +02:00
Carlos Dauden
e4e2b9f82a [MIG] contract_variable_quantity: Migration to 11.0 2024-07-22 11:49:58 +02:00
Moisés López
588cc569ac [FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed 2024-07-22 11:49:58 +02:00
Dave Lasley
decc1607de [10.0][IMP] Add variable qty to contract template view (#66)
* [IMP] Add variable qty to contract template view

* Bump minor version
2024-07-22 11:49:58 +02:00
Dave Lasley
bb4963c28f [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2024-07-22 11:49:58 +02:00
Dave Lasley
c6d41ae421 [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2024-07-22 11:49:58 +02:00
Pedro M. Baeza
53069fa4bb [MIG] Rename manifest files 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
a10cbb0f43 [MIG] Make modules uninstallable 2024-07-22 11:49:58 +02:00
Carlos Dauden
4724f401ab [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
4500201153 [IMP] contract_variable_quantity: Spanish translation 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
f15bc98aee [IMP] contract_variable_quantity: Screenshot 2024-07-22 11:49:58 +02:00
Pedro M. Baeza
32143d8ef7 [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-07-22 11:49:58 +02:00
Weblate
c2fd513321 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-subscription_oca
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-subscription_oca/
2024-07-12 14:41:49 +00:00
Weblate
d160ec3e91 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-17.0/contract-17.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/
2024-07-12 11:30:58 +00:00
OCA-git-bot
1cd818b7fa [BOT] post-merge updates 2024-07-12 11:30:49 +00:00
oca-ci
a49e5d1b49 [UPD] Update contract.pot 2024-07-12 11:28:00 +00:00
oca-ci
7470b8a6fe [UPD] Update subscription_oca.pot 2024-07-12 11:27:58 +00:00
OCA-git-bot
8eedf72797 Merge PR #1099 into 17.0
Signed-off-by rousseldenis
2024-07-12 11:25:16 +00:00
sygel
f4e1dc66ab [MIG] subscription_oca: Migration to 17.0 2024-07-12 10:44:53 +02:00
sygel
0498fedd67 [IMP] subscription_oca: pre-commit auto fixes 2024-07-08 13:31:29 +02:00
mymage
327486c8e0 Added translation using Weblate (Italian) 2024-07-08 13:31:29 +02:00
Thijs van Oers
fe2f147af8 Translated using Weblate (Dutch)
Currently translated at 95.7% (159 of 166 strings)

Translation: contract-16.0/contract-16.0-subscription_oca
Translate-URL: https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-subscription_oca/nl/
2024-07-08 13:31:29 +02:00
Thijs van Oers
e91efbc164 Added translation using Weblate (Dutch) 2024-07-08 13:31:29 +02:00
Grégory Moka Tourisme
0915af0219 Added translation using Weblate (French) 2024-07-08 13:31:29 +02:00
OCA-git-bot
d1d41340f6 [BOT] post-merge updates 2024-07-08 13:31:29 +02:00
oca-ci
1ba29157a3 [UPD] Update subscription_oca.pot 2024-07-08 13:31:29 +02:00
Carol
5593a3fede [IMP] subscription_oca: tests adjustments 2024-07-08 13:31:29 +02:00
Ilyas
86fe0850fe [IMP] subscription_oca: tests 2024-07-08 13:31:29 +02:00
Carol
7516309e42 [MIG] subscription_oca: Migration to 16.0 2024-07-08 13:31:29 +02:00
Ivorra78
70b832e37c Added translation using Weblate (Spanish) 2024-07-08 13:31:29 +02:00
Ilyas
f96402cd9d [IMP] subscription_oca: refactoring 2024-07-08 13:31:29 +02:00
Ilyas
2cfb099eef [IMP] subscription_oca: tests 2024-07-08 13:31:29 +02:00
Carlos
1fefdd98aa [15.0][ADD] subscription_oca 2024-07-08 13:31:29 +02:00
oca-git-bot
79809451f4 [IMP] update dotfiles 2024-07-06 17:23:49 +00:00
jakobkrabbe
9be0a1fa91 Translated using Weblate (Swedish)
Currently translated at 100.0% (314 of 314 strings)

Translation: contract-17.0/contract-17.0-contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-contract/sv/
2024-06-05 14:38:22 +00:00
mymage
61c808e860 Translated using Weblate (Italian)
Currently translated at 100.0% (48 of 48 strings)

Translation: contract-17.0/contract-17.0-product_contract
Translate-URL: https://translation.odoo-community.org/projects/contract-17-0/contract-17-0-product_contract/it/
2024-06-05 10:36:51 +00:00