Commit Graph

668 Commits

Author SHA1 Message Date
Thomas Binsfeld
3dd086fb38 [REF] Contract: invoice in prepare_invoice_line is optional 2021-09-23 16:47:59 +02:00
sbejaoui
7e15f88d1c [IMP] - refresh contract_variable_quantity.pot 2021-09-23 16:47:59 +02:00
sbejaoui
ee5349aa2b [IMP] - Adapt contract_variable_quantity to contract new views 2021-09-23 16:47:59 +02:00
sbejaoui
19770a2fa2 [IMP] - Add ace-widget with python mode 2021-09-23 16:47:59 +02:00
sbejaoui
7ecea4c18f [IMP] Adapt unit test 2021-09-23 16:47:59 +02:00
sbejaoui
4e5efd72eb [MIG] contract_variable_quantity: Migration to 12.0 2021-09-23 16:47:59 +02:00
Dmytro Katyukha
3932bb8afa Update addon versions
- contract
- contract_variable_quantity
2021-09-23 16:47:59 +02:00
Dmytro Katyukha
b5f549ebac [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)
2021-09-23 16:47:59 +02:00
Pedro M. Baeza
a793ca56bc [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.
2021-09-23 16:47:59 +02:00
Pedro M. Baeza
7ab8f0f2d8 [IMP] contract_variable_quantity: Make name translatable 2021-09-23 16:47:59 +02:00
Carlos Dauden
a64ea3c72a [IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
ef4e37a7b4 [FIX] contract_variable_quantity: Correct README menus references 2021-09-23 16:47:59 +02:00
Carlos Dauden
ceafa89917 [MIG] contract_variable_quantity: Migration to 11.0 2021-09-23 16:47:59 +02:00
Moisés López
91065a78ed [FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed 2021-09-23 16:47:59 +02:00
Dave Lasley
ce2110ea51 [10.0][IMP] Add variable qty to contract template view (#66)
* [IMP] Add variable qty to contract template view

* Bump minor version
2021-09-23 16:47:59 +02:00
Dave Lasley
820e0b2b05 [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2021-09-23 16:47:59 +02:00
Dave Lasley
fa0e6d379a [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2021-09-23 16:47:59 +02:00
Pedro M. Baeza
c6ce43f33e [MIG] Rename manifest files 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
364a4ed213 [MIG] Make modules uninstallable 2021-09-23 16:47:59 +02:00
Carlos Dauden
e8f8cbb580 [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
ef3ee8f4e4 Update README.rst 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
3ede742fc7 [IMP] contract_variable_quantity: Spanish translation 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
7b115f9cb6 [IMP] contract_variable_quantity: Screenshot 2021-09-23 16:47:59 +02:00
Pedro M. Baeza
222dc7373e [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).
2021-09-23 16:47:59 +02:00
pere-aquarian
929495172c 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/
2021-09-14 02:33:43 +00:00
pere-aquarian
0505e7b207 Translated using Weblate (Catalan)
Currently translated at 34.2% (26 of 76 strings)

Translation: contract-14.0/contract-14.0-agreement
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement/ca/
2021-09-14 02:33:42 +00:00
OCA-git-bot
8a77fc17ee [UPD] addons table in README.md 2021-09-13 14:25:00 +00:00
OCA-git-bot
e3fa614045 contract 14.0.1.2.3 2021-09-13 14:24:55 +00:00
OCA-git-bot
c3570919cc Merge PR #715 into 14.0
Signed-off-by pedrobaeza
2021-09-13 14:10:06 +00:00
OCA-git-bot
519c4faaca [UPD] addons table in README.md 2021-09-13 13:50:29 +00:00
Alexandre Fayolle
b3ffe50cb3 [FIX] agreement_stock: bump version
to solve a pypi upload issue
2021-09-13 15:50:16 +02:00
Alexandre Fayolle
ec9cb8c9f5 Revert "[FIX] agreement_stock: bump version"
This reverts commit 1602e240ae.
2021-09-13 15:48:42 +02:00
João Marques
5fcd198471 [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
2021-09-10 13:31:14 +01:00
Alexandre Fayolle
1602e240ae [FIX] agreement_stock: bump version
to solve a pypi upload issue
2021-09-01 09:44:27 +02:00
OCA-git-bot
a36ff32bfa [UPD] addons table in README.md 2021-08-30 12:08:48 +00:00
OCA-git-bot
c46b91de95 contract 14.0.1.2.2 2021-08-30 12:08:43 +00:00
OCA-git-bot
24316309b5 Merge PR #713 into 14.0
Signed-off-by pedrobaeza
2021-08-30 11:46:01 +00:00
Alexis de Lattre
14bf7f3f4d [FIX] contract: fix an obvious crash when self is a multi-recordset 2021-08-30 13:41:33 +02:00
OCA-git-bot
6c6601e6a5 [ADD] setup.py 2021-08-20 10:36:56 +00:00
OCA-git-bot
e13e7fc2e7 [UPD] README.rst 2021-08-20 10:36:55 +00:00
OCA-git-bot
a5c9b807cb [UPD] addons table in README.md 2021-08-20 10:36:53 +00:00
oca-travis
f1d1fa2840 [UPD] Update agreement_project.pot 2021-08-20 10:04:07 +00:00
OCA-git-bot
ec66c5f847 Merge PR #686 into 14.0
Signed-off-by dreispt
2021-08-20 09:59:03 +00:00
OCA Transbot
f53b93dae8 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: contract-14.0/contract-14.0-agreement_legal
Translate-URL: https://translation.odoo-community.org/projects/contract-14-0/contract-14-0-agreement_legal/
2021-08-19 08:16:28 +00:00
OCA-git-bot
f4b2d390ba [UPD] addons table in README.md 2021-08-19 08:16:20 +00:00
OCA-git-bot
be85cea31b agreement_legal 14.0.2.0.0 2021-08-19 08:16:15 +00:00
OCA-git-bot
b36bed433e [UPD] README.rst 2021-08-19 08:16:15 +00:00
oca-travis
57bfbebeb8 [UPD] Update agreement_legal.pot 2021-08-19 08:00:50 +00:00
OCA-git-bot
156e977b55 Merge PR #700 into 14.0
Signed-off-by dreispt
2021-08-19 07:55:58 +00:00
OCA-git-bot
5efa1492f9 [UPD] addons table in README.md 2021-08-14 02:58:38 +00:00