Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG] contract_variable_quantity: Migration to 11.0 #139

Merged
merged 18 commits into from
Jan 11, 2018

Conversation

carlosdauden
Copy link
Contributor

pedrobaeza and others added 18 commits January 9, 2018 17:59
=================================================
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).
* Bump version
* Change openerp references to odoo
* Installable to True
* Change permissions & views to accounting dependency
Add template functionality for contracts
* [IMP] Add variable qty to contract template view

* Bump minor version
@luismontalba
Copy link
Member

The module seems to be not installed in runbot?

@pedrobaeza
Copy link
Member

@luismontalba
Copy link
Member

So the problem (or my problem) is the menu are not visible even with all security permissions

@pedrobaeza
Copy link
Member

README is outdated. You should see in Invoicing. @carlosdauden please update README.

@luismontalba
Copy link
Member

I can't see any related menu even refreshing my browser ..

menu

@pedrobaeza
Copy link
Member

Please install sale_management module

Copy link
Member

@luismontalba luismontalba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on runbot

@pedrobaeza pedrobaeza merged commit bce681b into OCA:11.0 Jan 11, 2018
@pedrobaeza pedrobaeza deleted the 11.0-mig-contract_variable_quantity branch January 11, 2018 09:31
@pedrobaeza pedrobaeza added this to the 11.0 milestone Jan 11, 2018
@pedrobaeza pedrobaeza mentioned this pull request Jan 11, 2018
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants