Guewen Baconnier
cadbf1526b
[FIX] account_analytic_analysis: contract manager as salesman
...
Copy the contract's manager to the invoice's manager field when generating
recurring invoice.
Closes #6568
2015-08-18 14:59:04 +02:00
Goffin Simon
6e2026dcda
[FIX] account_analytic_analysis: timesheet_ca_invoiced
...
The function "_timesheet_ca_invoiced_calc" must not take lines from invoice in state "draft" or "cancel"
to compute timesheet_ca_invoiced. Inspired from function "_ca_invoiced_calc".
opw646602
2015-08-07 09:41:34 +02:00
Guewen Baconnier
26c7ea4de6
[REF] account_analytic_analysis: extract a method for preparing invoice lines
...
In recurring invoices from contracts. It allows to inherit and modify the
prepared values for the lines.
Closes #6822
2015-07-08 13:42:59 +02:00
Guewen Baconnier
04ef9d991b
[FIX] account_analytic_analysis: remove orphan recurring invoice lines
...
Delete recurring invoice lines when their contract is deleted.
Otherwise, when a contract is deleted, the lines remain orphan with no way to
access it or may generate wrong invoice (should not happen in standard as only
accessed through contracts via recurring_invoice_line_ids).
Fixes #6801
2015-05-22 12:44:01 +02:00
Damien Bouvy
775ecc6cad
[FIX] account_analytic_analysis: fiscal position should use the get_fiscal_position() function
...
When automatically generating invoices, contract should browse the fiscal position by calling
the function get_fiscal_position of the account.fiscal.position class instead of checking the
property field on the partner
2015-04-23 13:35:48 +02:00
Denis Ledoux
14f3085776
[MERGE] forward port of branch saas-3 up to 77500e5
2014-10-02 15:36:58 +02:00
Denis Ledoux
77500e54ec
[MERGE] forward port of branch 7.0 up to eb9113c
2014-10-02 15:34:02 +02:00
Denis Ledoux
12df3fe5a0
[FIX] account_analytic_analysis: invoiced field takes customer invoices only
...
Besides, it subtracts customer invoices with customer refund invoices
2014-10-02 11:53:38 +02:00
Christophe Simonis
5dff035878
[MERGE] forward port of branch saas-5 up to 39bee35
2014-08-20 20:33:17 +02:00
Christophe Simonis
c3131317d7
[MERGE] forward port of branch saas-4 up to ddef2dd
2014-08-20 17:57:22 +02:00
Denis Ledoux
e2532dd8e0
[FIX] account_analytic_analysis: quantity overdue on quantity exceeded, not reached
2014-08-18 14:05:41 +02:00
Christophe Simonis
f654a7719b
[MERGE] forward port of branch saas-5 up to 73d39a0
2014-07-10 22:49:53 +02:00
Christophe Simonis
73d39a0c8c
[MERGE] forward port of branch saas-4 up to a361947
2014-07-10 22:12:16 +02:00
Christophe Simonis
a361947143
[MERGE] forward port of branch saas-3 up to a35aec2
2014-07-10 22:02:58 +02:00
Olivier Dony
1ddb3439be
[FIX] account_analytic_account: handle partners without fiscal position gracefully
2014-07-08 17:44:40 +02:00
Raphael Collet
2d39a4fada
[FIX] account_analytic_analysis: fix _depends
2014-07-08 15:55:42 +02:00
Raphael Collet
2398f480cd
[IMP] addons: add _depends on models backed up by an sql view and used by other models
2014-07-08 15:32:38 +02:00
Raphael Collet
cbe2dbb672
[MERGE] new v8 api by rco
...
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Christophe Simonis
adf07a9490
[MERGE] forward port of branch saas-4 up to 5087612
2014-06-19 16:13:35 +02:00
Christophe Simonis
5087612d1d
[MERGE] forward port of branch saas-3 up to bf53aed
2014-06-19 15:44:07 +02:00
Denis Ledoux
c8be66739d
[FIX] account_analytic_analysis: recurring_create_invoice
...
If no contract found, just pass, to avoid making the sql request
2014-06-19 10:55:17 +02:00
Denis Ledoux
8d282f3b4f
[FIX] account_analytic_analysis: force company of contract when creating recurring invoices
...
When creating the recurring invoices of the contracts, the invoices accounts(ir.property) must be set according to the company of the contract, not according to the company of the user creating the invoices
2014-06-18 13:02:00 +02:00
Denis Ledoux
6b00257595
[FIX] account_analytic_analysis: product_id_change, variable price referenced before assignment in some cases
2014-06-16 17:44:15 +02:00
Christophe Simonis
a7c2125735
[MERGE] forward port of branch saas-4 up to 6b8e972
2014-06-10 13:15:46 +02:00
Christophe Simonis
6b8e9727e5
[MERGE] forward port of branch saas-3 up to 4601d85
2014-06-10 12:29:47 +02:00
Denis Ledoux
9c9cacd1d0
[FIX] account_analytic_analysis: Recurring invoice lines price if pricelist does not match
...
If the price according to price list is False, use default sale price in the recurring invoice lines
2014-06-05 10:42:02 +02:00
Xavier Morel
46712acaec
[FIX] bunch of changes lost in incorrect merge f4d78ae738
2014-05-30 17:00:52 +02:00
Xavier Morel
d325c0caef
[REV] attempt to revert incorrect removals in f4d78ae738
2014-05-30 16:00:28 +02:00
Olivier Dony
04211015fc
[MERGE] Forward-port of latest saas-4 fixes, up to 0452851
2014-05-27 20:49:49 +02:00
Olivier Dony
fd21abd847
[MERGE] Forward-port latest saas-3 bugfixes, up to 30f43da
2014-05-27 17:18:43 +02:00
Denis Ledoux
7a3b7f7fe2
[FIX] account_analytic_analysis: recurring invoice line description and yearly interval
...
the product_id_change name is reset if name is not passed to method args
the product_id_change call in account_analytic_view set name as false so it is reset each time the product is change
the yearly interval add a year to the next recurring date instead of one month
2014-05-23 11:16:46 +02:00
Denis Ledoux
ecce35bc6e
[MERGE] Forward-port of latest saas-3 bugfixes, up to rev. 6958d47694
2014-05-21 13:05:41 +02:00
Denis Ledoux
6958d47694
[FIX] account_analytic_analysis: recurring invoices prepare and product_id_change
...
product_id_change set the description with the same behavior as sale orders
product_id_change set the price unit according to the pricelist
_prepare_invoice is split into two sub methods, _prepare_invoice_data and _prepare_invoice_line
_prepare_invoice actually prepare the invoice values instead of directly creating the invoice
2014-05-21 12:57:28 +02:00
Christophe Simonis
a756b82372
[MERGE] forward port of branch saas-4 up to revid bb26dea
2014-05-20 20:19:55 +02:00
Denis Ledoux
40abb97136
[FIX] account_analytic_analysis: use product.price if pricelist is passed, else list_price
2014-05-20 16:08:03 +02:00
Antoine Perdaens
4dbaa116ee
[FIX] account_analytic_analysis: recurring invoices
...
Properly support yearly recurring invoices
2014-05-19 17:44:51 +02:00
Denis Ledoux
cfefd04871
[FIX] account_analytic_analysis: recurring invoices, product_id_change wasnt returning the price get from the pricelist
2014-05-14 23:51:18 +02:00
Denis Ledoux
2bcbebb0d5
[FIX] account_analysis_account: Keep price_unit to 0.0 if passed
2014-05-14 21:36:34 +02:00
Martin Trigaux
7d36f54288
[FIX] account_analytic_analysis: revert method signature change made at rev 9277
...
The additional parameters were made to avoid overwriting values when changing of template.
As we can not add parameters in only one module, we overwrite values only for not saved records.
This mitigates the overwrite while not changing the API.
bzr revid: mat@openerp.com-20140508083948-gkk7d1250a8znhlt
2014-05-08 10:39:48 +02:00
Denis Ledoux
d1bba709b4
[FIX] account_analytic_analysis: recurring invoices, map_tax and map_account methods of fiscal position model expect a browse record
...
bzr revid: dle@openerp.com-20140506153459-0vv6rcttihl628l3
2014-05-06 17:34:59 +02:00
Denis Ledoux
ae6a0fcb73
[FIX] account_analytic_analysis: split _prepare_invoice into two methods, one for the 'generic' data for invoices (customers, fiscal position, etc) and one for generate the recurring invoice line, so they can be reused in other methods
...
bzr revid: dle@openerp.com-20140506090649-141s4io4329ybu69
2014-05-06 11:06:49 +02:00
Denis Ledoux
41e6840169
[FIX] account_analytic_analysis: recurring invoices, prepare_invoice method actually prepare the invoice, without creating it. _recurring_create_invoice return value is the list of created invoices ids
...
bzr revid: dle@openerp.com-20140505130226-ylcycmzmj0hm35w6
2014-05-05 15:02:26 +02:00
Denis Ledoux
79d4c57877
[MERGE] Forward-port of latest saas-3 bugfixes, up to rev. 9439 revid:dle@openerp.com-20140429112147-hqfqd0y487s817n7
...
bzr revid: dle@openerp.com-20140429112738-y2el246dmd2o2zy9
2014-04-29 13:27:38 +02:00
Denis Ledoux
b2e56a0128
[FIX] account_analytic_analysis: recurring invoice line, use the name passed in the product_id_change method
...
In addition, do not set the line description as the product name + product description, only the product description: same behavior than in invoices and sale orders
bzr revid: dle@openerp.com-20140429112147-hqfqd0y487s817n7
2014-04-29 13:21:47 +02:00
Denis Ledoux
1b45edab23
[FIX] account_analytic_analysis: recurring invoices lines, use the passed price_unit in product_id_change
...
bzr revid: dle@openerp.com-20140429100137-4jvs37e1j4lqeioe
2014-04-29 12:01:37 +02:00
Christophe Simonis
7a7d7febf8
[MERGE] forward port of branch saas-3 up to revid 9429 chs@openerp.com-20140424123538-rxk9got9k2on1ki1
...
bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb
bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-24 15:45:33 +02:00
Denis Ledoux
d0cf305618
[FIX] account_analytic_analysis: avoid create recurring invoices for contract templates
...
bzr revid: dle@openerp.com-20140418134740-dv39ffwcdqh4np0g
2014-04-18 15:47:40 +02:00
Denis Ledoux
6e04c0c5eb
[FIX] account_analytic_analysis: prevent enable recurring invoices if not of type contract. Avoid cron to not continue if one of the contract failed to create its recurring invoices
...
bzr revid: dle@openerp.com-20140418132917-ztvzinwn3kt786m2
2014-04-18 15:29:17 +02:00
Denis Ledoux
2695cacea4
[FIX] account_analytic_analysis, analytic, hr_timesheet: do not override existing data of analytic account on template on_change
...
bzr revid: dle@openerp.com-20140401123657-ozh4ycx36jojpg51
2014-04-01 14:36:57 +02:00
Christophe Simonis
4b72678bc7
[MERGE] forward port of branch saas-2 up to revid 9195 chs@openerp.com-20140220154517-6y531n1mqtnfnsmr
...
bzr revid: chs@openerp.com-20140220163815-69sza1kclnh5mavs
2014-02-20 17:38:15 +01:00