Commit Graph

73 Commits

Author SHA1 Message Date
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
Pedro M. Baeza
fe7e87c68a Merge pull request #121 from feketemihai/11.0-mig-contract
[11.0] [MIG] contract
2017-11-19 14:44:09 +01:00
Fekete Mihai
76f10fd8e2 [MIG] contract: Migration to version 11.0 2017-11-19 05:54:28 +01:00
Pedro Castro Silva
0039964abd [IMP] contract: Add display sequence on contract lines (#119) 2017-11-19 05:54:28 +01:00
Carlos Dauden
801135b3f2 [IMP] contract: Module contract improvements (#107) 2017-11-19 05:54:28 +01:00
Pedro M. Baeza
2cddefbdc6 [IMP] contract: Improvements in tests
* Use SavepointCase for making the setup only once for all tests
* Make them inheritable, creating a base class with only the setup,
  so that it can be inherited without the need of executing all tests
  contained here each time you inherit it, and adding other class
  in the same module that inherits from the base class that actually
  performs the tests.
* Removed duplicated test method
2017-11-19 05:54:28 +01:00
Pedro M. Baeza
98de4e0728 [FIX] contract: Be totally deterministic about which views to use
Having a primary view that is not explicitly declared to be uses and w/o priority
makes Odoo to choose between one of them randomly (well, not exactly, but kind of),
so we put here which views to use.

I have also put tree view as primary and put a large priority for not being
selected on other actions that don't have this explicit views.

A friendly name in views is also assigned.
2017-11-19 05:54:28 +01:00
Pedro M. Baeza
42e3bcf0bc [IMP] contract: Copyright in manifest 2017-11-19 05:54:28 +01:00
Dave Lasley
5b4172213e [FIX] contract: Template lines handling (#92)
Update contract template lines handling to fix #80, and fix #59 #100
2017-11-19 05:54:28 +01:00
OCA Transbot
f2ce31bec9 OCA Transbot updated translations from Transifex 2017-11-19 05:54:28 +01:00
cubells
382e24b7c5 [IMP][10.0] contract: Add report + send by mail (#86)
* [IMP][9.0] contract: Add report + send by mail

* Update translation and rename contract report

* Changes requested and translation updated
2017-11-19 05:54:28 +01:00
Dave Lasley
55b5593e8f [FIX] contract: Operator issue in price get
* Add a default date in the instance that an analytic account doesn’t exist (templates) - fixes #68
2017-11-19 05:54:28 +01:00
OCA Transbot
274234c38a OCA Transbot updated translations from Transifex 2017-11-19 05:54:28 +01:00
Andrea
bf2b135e9c Add 'Date of Next Invoice' in contract list view 2017-11-19 05:54:28 +01:00