Christophe Simonis
12f600cec9
[MERGE] forward port of branch 7.0 up to 35077af
2015-04-01 19:07:59 +02:00
Rifakathusen Haradwala
3cae2c5155
[FIX] account: wrong tax amount for manual tax line
...
On an invoice, tax lines are generated in tax_line field. When modifying
manually the tax amount, the recomputed tax_amount field was incorrect in
multicurrency environment, leading to an entry with different tax amount and
debit value.
opw 611474
2015-03-30 16:43:08 +02:00
Denis Ledoux
02f4f9a572
[MERGE] forward port of branch 7.0 up to e2dd18f
2014-11-26 12:35:36 +01:00
Denis Ledoux
4ca389a1a6
[FIX] account: prevent invoice line duplication on partner duplication
...
If a company contact (a partner with a company set as parent) had invoices, and the company of this contact was duplicated, all the invoices lines were duplicated, on the original invoice moreover (new lines were added on existing invoices)
2014-11-25 18:23:45 +01:00
Denis Ledoux
8c4a7cb371
[MERGE] forward port of branch 7.0 up to 5035c76
2014-11-04 12:19:58 +01:00
Stéphane Bidoul
18b7b28bc1
[FIX] account: backport of 12a39db
...
[FIX] account: Preserve analytic account on tax lines which are on same general account as invoice line
After careful analysis, I'm now convinced it is a good thing to preserve
the analytic account on taxes line which have the same general account
as the invoice line.
This is the best default case and will save time for users,
while leaving the flexibility to adapt the analytic account on
taxes manually.
2014-11-04 11:29:00 +01:00
Stéphane Bidoul
ab797f0cd8
[FIX] account: backport of 3470643
...
[FIX] account: Error when manually adding analytic account in the generated tax lines on an invoice
fixes #374
fixes https://bugs.launchpad.net/ocb-addons/+bug/1084822
The fix considers invoice tax lines with different analytic account
are equivalent for the purpose of checking if the list of tax line
is complete.
Caveat, this changes the structure of keys in the dictionary
returned by account.invoice.tax's compute method, I suppose this
is ok for the master branch.
2014-11-04 11:28:10 +01:00
Denis Ledoux
a6024a6376
[MERGE] forward port of branch 7.0 up to 00ec786
2014-10-28 13:40:17 +01:00
Denis Ledoux
96bcaadd46
[FIX] account: limit search for fields_view_get to one result
...
+ use ir.model.data get_object_reference method for better performance (cached result)
opw-616616
2014-10-27 13:24:47 +01:00
Denis Ledoux
d38adf3d92
[FIX] account_invoice: using has_group to determine if user has group group_supplier_inv_check_total
...
has_group do not care about the fact res.groups is access restricted
2014-10-09 18:57:37 +02:00
Denis Ledoux
b13898c058
[MERGE] forward port of branch 7.0 up to 03df412f
2014-10-07 17:34:42 +02:00
Denis Ledoux
03df412faf
[FIX] account: precision_get returns a number of digits
...
In other words, it returnes a precision digits, not a precision rounding
2014-10-07 17:26:49 +02:00
Denis Ledoux
39bb45a8ea
[MERGE] forward port of branch 7.0 up to 333852e
2014-09-26 21:32:40 +02:00
Martin Trigaux
ceff8ef899
[IMP] account: use float_compare for taxes
...
Avoiding some python float representation errors
2014-09-26 16:57:28 +02:00
Christophe Simonis
4e9f9426c6
[FIX] account: use method has_group() instead of browsing the group directly.
2014-08-28 17:21:54 +02:00
Christophe Simonis
ada9724655
[MERGE] forward port of branch 7.0 up to 3509e15
2014-08-28 16:12:55 +02:00
Ravi Gohil
df5633dcab
[FIX] account: avoid date and cache issues
...
Explicitely refresh invoice browse_record(...) in order to have correct 'date' in account.move.
Use context_today() date instead of time.strftime() for date_invoice. (opw 611210)
2014-08-27 15:03:47 +02:00
Olivier Dony
b9275da8a5
[MERGE] Forward-port 7.0 up to 23cffab
2014-08-13 17:30:06 +02:00
Olivier Dony
6b8af73179
[FIX] account.invoice: payments can never be shown to portal users, but residual might be needed
...
The residual amount is typically needed to render the
online payment forms (payment acquirers).
Payments on the other hand rely on account.move.line,
something that portal users should never be allowed to read.
Removing the field from the view by setting a model-level
group permission ensures they will not see an error.
2014-08-13 12:38:38 +02:00
Denis Ledoux
8a7728790b
[MERGE] forward port of branch 7.0 up to 60ab6f1
2014-08-12 17:49:12 +02:00
Ruchir Shukla
b2f1c764cd
[FIX] account_anglo_saxon: avoid duplication of price difference lines
...
When computing the price difference lines, in move_line_get of account_anglo_saxon, we loop on the result of super call for each lines (n * n times) to compute the price difference.
The product_id was used to match the returned line and the original invoice line. This was wrong as we could get several lines with the same product_id (and then get n * n price difference lines).
This patch adds the line id to the result of move_line_get (from account) so that account_anglo_saxon can filter more efficiently and only get one price difference per invoice line.
Fixes #704
2014-08-12 17:30:49 +02:00
Denis Ledoux
02bf0fd9c8
[MERGE] forward port of branch 7.0 up to a86dfb8
2014-08-07 18:20:13 +02:00
Denis Ledoux
5ca6b09375
[FIX] account: payment_ids should list payments of same account than the invoice account
2014-08-06 19:00:01 +02:00
Denis Ledoux
3c0292645f
[MERGE] Forward-port of 7.0 bugfixes up to 63ea0df73f
2014-06-16 17:37:10 +02:00
Denis Ledoux
63ea0df73f
[FIX] account: default domain on journal_id field for invoices
...
Prior to this fix, the domain was set in the onchange methods onchange_company_id. Therefore, if the onchange was not triggered, the domain wasnt apply (e.g. while editing an existing invoice).
2014-06-16 16:55:58 +02:00
Christophe Simonis
a69f789b41
[MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
...
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00
Denis Ledoux
34beebac6c
[FIX] account: residual amount computation with refund invoices
...
On invoice residual amount computing, we ignore reconcile entries line if their invoice are not of the same type of the current invoice
The above revision(s) will be removed
bzr revid: dle@openerp.com-20140205100324-5tyquozmylcp40p1
2014-02-05 11:03:24 +01:00
Christophe Simonis
3fa90321e1
[MERGE] forward port of branch saas-1 up to revid 8772 chs@openerp.com-20130910122113-171osvcukxffxcry
...
bzr revid: chs@openerp.com-20130910124803-wxkb8gkz1tub5qjf
2013-09-10 14:48:03 +02:00
Denis Ledoux
546a191f0a
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9459 rev-id: fva@openerp.com-20130918153347-fy4nuvbm82ngfb8x
...
bzr revid: mat@openerp.com-20130826135110-f9q4p65ds2aholcw
bzr revid: dle@openerp.com-20130828141129-ecxl2vlpb8vw0o9f
bzr revid: dle@openerp.com-20130828162659-n8a0ku9o3h01qaov
bzr revid: dle@openerp.com-20130830094205-q3itwd7x0246d9n6
bzr revid: dle@openerp.com-20130830133604-mfnfbscn5wdk4vi4
bzr revid: dle@openerp.com-20130902131244-v9uh0s8rg4889i7j
bzr revid: mat@openerp.com-20130903134105-68ziuaccreu6rs61
bzr revid: chs@openerp.com-20130906171851-jtfsf4au1k30wwlr
bzr revid: dle@openerp.com-20130909103120-k5oefxgebhyslac3
bzr revid: dle@openerp.com-20130909170047-pbzw4ernvcpivbhh
bzr revid: chs@openerp.com-20130910122113-171osvcukxffxcry
bzr revid: tde@openerp.com-20130912121059-k840pi4rwdzpez8g
bzr revid: dle@openerp.com-20130913085251-p906ci2divy82jur
bzr revid: tde@openerp.com-20130913092546-kzshg1a7sls566l8
bzr revid: mat@openerp.com-20130917122102-drf8fj9lrjj0fvju
bzr revid: mat@openerp.com-20130917161614-w8u2c1ayeb5kxm30
bzr revid: dle@openerp.com-20130918161305-7ep1642nxzyy3vhd
2013-09-18 18:13:05 +02:00
Martin Trigaux
9530012d09
[IMP] account: set default value on account invoice line and fallback on id for ordering if no sequence is available
...
bzr revid: mat@openerp.com-20130903160108-gc7hnhdmzx7rg6tm
2013-09-03 18:01:08 +02:00
Martin Trigaux
2130335727
[FIX] account: order on invoice lines based on sequence number (for complains, please refer to dle)
...
bzr revid: mat@openerp.com-20130903125900-wl1r1etx9pyhe185
2013-09-03 14:59:00 +02:00
Olivier Dony
c02afb45fa
[MERGE] Forward-port of bugfixes from saas-1 series up to rev.8759 rev-id: odo@openerp.com-20130820152607-0p0fx87v1rqhk3vy
...
bzr revid: odo@openerp.com-20130820165258-3mjzbo990xg44dfu
2013-08-20 18:52:58 +02:00
Denis Ledoux
a99b5786d1
[MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 (dle@openerp.com-20130731153129-8hmqrgsg3e9d533f)
...
bzr revid: mat@openerp.com-20130726073123-6buqe3rg321gj5rw
bzr revid: odo@openerp.com-20130730110536-a74ea14pwb2y03ay
bzr revid: dle@openerp.com-20130801123703-frjhpeqwocsjo7ge
2013-08-01 14:37:03 +02:00
Rifakat
475d2c6dec
[FIX] account: optimize code
...
bzr revid: rha@tinyerp.com-20130712065843-idr1urw86hf9zc8g
2013-07-12 12:28:43 +05:30
Thibault Delavallée
bf4ada34b4
[REF] mail_thread: message_track now uses browse records instead of read results.
...
Updated addons accordingly.
Updated tests to test corner cases using False / null browse records.
bzr revid: tde@openerp.com-20130627144647-swbj77i84vo9ii0v
2013-06-27 16:46:47 +02:00
Christophe Simonis
aa133b4d29
[MERGE] forward port of branch saas-1 up to revid 8745 chs@openerp.com-20130613181503-82234mo34wxb0oap
...
bzr revid: chs@openerp.com-20130614091924-z5ta02kwhmwcrgox
2013-06-14 11:19:24 +02:00
Christophe Simonis
6a9adbca62
[MERGE] forward port of branch 7.0 up to revid 9236 mat@openerp.com-20130613160953-itt79mu5xrl7suv4
...
bzr revid: chs@openerp.com-20130613181503-82234mo34wxb0oap
2013-06-13 20:15:03 +02:00
Martin Trigaux
58645c79ca
[MERGE] [FIX] account: allow usage of list of account typesfor invoices creation
...
bzr revid: mat@openerp.com-20130612153814-zs9p35z8u2ojicb6
2013-06-12 17:38:14 +02:00
Martin Trigaux
a2a19e58ea
[MERGE] [FIX] account: field supplier invoice number should be set in journal entry as description
...
lp bug: https://launchpad.net/bugs/1090389 fixed
bzr revid: mat@openerp.com-20130611123027-6rro4bg1es3se2un
2013-06-11 14:30:27 +02:00
Olivier Dony
b4976938d2
[MERGE] [I18N] Many translation bugfixes + resync of translation templates with latest source
...
lp bug: https://launchpad.net/bugs/1165321 fixed
bzr revid: odo@openerp.com-20130607194733-27oiskc6q4fnp476
2013-06-07 21:47:33 +02:00
Olivier Dony
40c193d193
[MERGE] OPW 590663: account: make error message after changing invoice company translatable
...
This includes an horrible hack to use a temporary
context inside the onchange() method because it
is not part of the method signature, and we cannot
add it in a stable series.
TODO: fix this hack in trunk!
lp bug: https://launchpad.net/bugs/1165321 fixed
bzr revid: odo@openerp.com-20130607175949-rdboc81lsr7viqa3
2013-06-07 19:59:49 +02:00
Christophe Matthieu
9d9e3d2ef8
[IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
...
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
Christophe Matthieu
8c6ff33bef
[IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
...
bzr revid: chm@openerp.com-20130607102359-is19utzap127nwr4
2013-06-07 12:23:59 +02:00
Olivier Dony
053709acbc
[MERGE] OPW 586661: account: make Invoice/Refund breadcrumbs translatable
...
lp bug: https://launchpad.net/bugs/1165321 fixed
bzr revid: odo@openerp.com-20130606163259-1mp6f44nhrbql6nv
2013-06-06 18:32:59 +02:00
Martin Trigaux
ccb38117ee
[MERGE] Forward porting of saas-1 until rev 8739
...
bzr revid: mat@openerp.com-20130605090453-e4mg37kms5j1r18n
2013-06-05 11:04:53 +02:00
Amit Dodiya
edcb556875
[FIX] account_invoice: due date is reset to current date when we have no payment term and due date is manually defined
...
bzr revid: ado@tinyerp.com-20130603103557-n2t8w068vvgcsie4
2013-06-03 16:05:57 +05:30
Martin Trigaux
667876728d
[MERGE] [FIX] account: use the purchase or sale description for manual invoicing instead of product description, courtesy of Numérigraphe
...
lp bug: https://launchpad.net/bugs/1101146 fixed
bzr revid: mat@openerp.com-20130603102627-6dokww7uhijvxlfk
2013-06-03 12:26:27 +02:00
Amit Dodiya
a9cdc75326
[FIX] account_invoice: due date is reset to current date when we have no payment term and due date is manually defined
...
bzr revid: ado@tinyerp.com-20130603061602-h6q0y0vzl2atm9jy
2013-06-03 11:46:02 +05:30
Amit Bhavsar (Open ERP)
24848a8dcc
[MERGE] merge with latest trunk
...
bzr revid: bde@tinyerp.com-20130522095432-1sl1b6uu6ewod4md
bzr revid: amb@tinyerp.com-20130528091941-wak8fnembuvewwjf
2013-05-28 14:49:41 +05:30
Thibault Delavallée
71df1a41bc
[FORWARD] Forward port of addons 7.0 until revision 9172
...
bzr revid: tde@openerp.com-20130528104500-ds3irrs2u0qpst37
2013-05-28 12:45:00 +02:00