Commit Graph

186 Commits

Author SHA1 Message Date
Levent Karakaş
b2d55e359e [FIX] contract: Let billing users have access rights for contracts (#159) 2018-04-01 19:24:19 +02:00
Pedro M. Baeza
39128de36f Merge pull request #152 from Tecnativa/11.0-contract-automatic_prices
[IMP] contract: Automatic prices for lines
2018-04-01 19:16:58 +02:00
Pedro M. Baeza
ce131a8da9 [IMP] contract: Automatic prices for lines 2018-04-01 19:16:43 +02:00
OCA Transbot
893ea4b516 OCA Transbot updated translations from Transifex 2018-03-31 04:25:49 +02:00
Pedro M. Baeza
df98f0d529 Merge pull request #158 from Tecnativa/11.0-FIX-contract-pricelist_name
[FIX] contract: Invalid pricelist field name
2018-03-30 13:41:39 +02:00
Carlos Dauden
6f33dd5691 [FIX] contract: Invalid pricelist name 2018-03-30 12:25:15 +02:00
OCA Git Bot
f0f37f4162 [ADD] setup.py 2018-03-30 04:36:05 +02:00
Pedro M. Baeza
b21dc9ffd7 Merge pull request #155 from Tecnativa/11.0-ADD-contract_variable_qty_timesheet
[11.0][ADD] contract_variable_qty_timesheet: New module
2018-03-29 12:59:36 +02:00
Carlos Dauden
29fa40650a [IMP] contract_variable_qty_timesheet: New module 2018-03-29 11:22:51 +02:00
Pedro M. Baeza
133e88c7a0 [IMP] contract_variable_quantity: Make name translatable 2018-03-29 08:42:46 +02:00
Pedro M. Baeza
d1de746db2 Merge pull request #156 from Tecnativa/11.0-FIX-contract-onchange_template
[FIX] contract: Onchange contract template raise error
2018-03-28 18:16:12 +02:00
Carlos Dauden
d738b5dead [FIX] contract: Onchange contract template raise error 2018-03-28 17:38:01 +02:00
Pedro M. Baeza
16739bd1d9 Merge pull request #153 from Tecnativa/11.0-IMP-contract_variable_quantity-skip_zero_lines
[IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines
2018-03-27 21:00:50 +02:00
Carlos Dauden
dc18c372d3 [IMP] contract_variable_quantity: Add option to don't create zero qty invoice lines 2018-03-27 14:44:52 +02:00
Pedro M. Baeza
6f02ba8503 Merge pull request #132 from Tecnativa/11.0-IMP-contract-contract_count
[11.0][IMP] contract: Improve partner contract smartbutton
2018-03-27 13:45:59 +02:00
Carlos Dauden
b56be42e2d [11.0][IMP] contract: Improve partner contract smartbutton 2018-03-27 13:21:06 +02:00
OCA Transbot
3dd167190d OCA Transbot updated translations from Transifex 2018-01-27 04:20:47 +01:00
Carlos Dauden
81e14cdce0 [IMP] contract: Add computed dates from/to period invoiced (#140) 2018-01-17 10:22:34 +01:00
OCA Git Bot
c6e7f25486 [ADD] setup.py 2018-01-12 04:35:44 +01:00
Pedro M. Baeza
48a107b63f [FIX] contract_variable_quantity: Correct README menus references 2018-01-11 10:34:45 +01:00
Pedro M. Baeza
bce681bb4d Merge pull request #139 from Tecnativa/11.0-mig-contract_variable_quantity
[MIG] contract_variable_quantity: Migration to 11.0
2018-01-11 10:31:27 +01:00
Carlos Dauden
60cfffbaf3 [MIG] contract_variable_quantity: Migration to 11.0 2018-01-09 18:10:10 +01:00
OCA Transbot
d57b75a78e OCA Transbot updated translations from Transifex 2018-01-09 18:10:09 +01:00
Moisés López
6bbdb31206 [FIX] contract_payment_auto: Fix freze wkhtmltopdf freezed 2018-01-09 18:10:09 +01:00
OCA Transbot
988c61d103 OCA Transbot updated translations from Transifex 2018-01-09 18:10:05 +01:00
Dave Lasley
dd17919e35 [10.0][IMP] Add variable qty to contract template view (#66)
* [IMP] Add variable qty to contract template view

* Bump minor version
2018-01-09 18:10:05 +01:00
OCA Transbot
87689a4747 OCA Transbot updated translations from Transifex 2018-01-09 18:10:05 +01:00
Dave Lasley
f3cee3f1ce [IMP][10.0] contract: Add templating (#42)
Add template functionality for contracts
2018-01-09 18:10:05 +01:00
OCA Transbot
25fa69d49e OCA Transbot updated translations from Transifex 2018-01-09 18:09:57 +01:00
Dave Lasley
81dfbfad19 [MIG] contract_variable_quantity: Migrate to v10
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
2018-01-09 17:59:38 +01:00
OCA Transbot
1574b6c72e OCA Transbot updated translations from Transifex 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
fac5d60ba4 [MIG] Rename manifest files 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
5b52049996 [MIG] Make modules uninstallable 2018-01-09 17:59:38 +01:00
Carlos Dauden
dea23bd146 [IMP] contract: Add past receipt type. Fix yearly. Add month last day 2018-01-09 17:59:38 +01:00
OCA Transbot
85a99d8af3 OCA Transbot updated translations from Transifex 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
d87042f73f Update README.rst 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
b221461d6e [IMP] contract_variable_quantity: Spanish translation 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
5aeec17131 [IMP] contract_variable_quantity: Screenshot 2018-01-09 17:59:38 +01:00
Pedro M. Baeza
5d8a2026b0 [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).
2018-01-09 17:59:38 +01:00
OCA Transbot
f36bf9f92f OCA Transbot updated translations from Transifex 2018-01-06 04:13:29 +01:00
Pedro M. Baeza
e63855da6c [FIX] contract: PEP8 2018-01-03 19:32:18 +01:00
Pedro M. Baeza
915c91d9ef [FIX] contract: Correct references in the contract report 2018-01-03 19:26:09 +01:00
Pedro M. Baeza
df6965db61 [FIX+IMP] contract: Real fix to company_id missing + improvements
* company_id was empty because an onchange, not inheritance nor visibility
* Added multi-company group to company_id fields
* Added multi-company access rule to contract templates
* Fix double %% in XML dates that was causing an error
* When creating a contract, recurring_invoices is set by default
2018-01-03 19:10:49 +01:00
Gustavo Orozco H
9c71bd93b5 [10.0][FIX] Correct domain attribute in field journal_id (#120)
* Correct domain attribute in field journal_id

Original domain includes unknown value company_id. Throws error when selecting the journal.

* Corregidos errores detectados por Lint

* Refactoring, DRY

* [FIX] Add missing field company_id to account_analytic_contract

* Small refactoring for company_id field
2018-01-03 19:10:49 +01:00
OCA Transbot
b5036f8332 OCA Transbot updated translations from Transifex 2017-12-30 04:10:45 +01:00
OCA Transbot
fd3052bc46 OCA Transbot updated translations from Transifex 2017-12-16 03:33:56 +01:00
Pedro M. Baeza
8d10f68610 [10.0][FIX+IMP] contract: Improve usability and don't fail on wrong data (#130)
* [FIX+IMP] contract: Improve usability and don't fail on wrong data

* Cron create invoices masked for avoiding silent errors
* New constraints for assuring data consistency
* UI helps for entering consistent data
* Spanish translation
* Remove double company_id field on form
2017-12-11 10:19:10 +01:00
OCA Transbot
761a844aa1 OCA Transbot updated translations from Transifex 2017-11-25 03:29:14 +01:00
Pedro M. Baeza
5ad9b81070 [IMP] contract: Menu position 2017-11-21 19:16:29 +01:00
OCA Git Bot
575d7d816f [ADD] setup.py 2017-11-20 04:34:51 +01:00