Goffin Simon
39b0a4c2cc
[FIX] account: tax_sign
...
When changing manually the amount of tax in supplier invoice,
the tax sign of the tax must be kept.
Back-port of 4f6eebf698
opw:645691
2015-08-07 11:50:34 +02:00
Nicolas Martinelli
a197c91458
[FIX] account: remove lang from context before move creation
...
If an error message pops up during the move creation, we have to take the
user's language and not the partner's language.
Fixes #6902
Closes #6903
2015-06-26 08:41:10 +02:00
Nicolas Martinelli
fa57ce878e
[FIX] account: wrong domain for UoM
...
This allows to reset correctly the domain of UoM if the product is not set.
Without this patch, the domain used is the domain of the previous product in
the list.
opw-642074
2015-06-17 11:53:58 +02:00
Nicolas Lempereur
69f87cd34c
[FIX] account: get uom at account invoice creation
...
For commit c63230d0d
if there is no uom, it should not fail.
closes #6920
2015-06-01 16:03:46 +02:00
Nicolas Lempereur
c63230d0d0
[FIX] account: force uom from product category
...
When we change a product line of an account invoice, a current unit with
a invalid unit category was not dropped which should be since:
- it is different from a sale.order,,
- there is a domain on the unit of measure only allowing units from the product's unit category.
This fixes drop the current unit of mesure in this case.
opw-640985
2015-06-01 15:27:58 +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
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
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
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
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
Martin Trigaux
ceff8ef899
[IMP] account: use float_compare for taxes
...
Avoiding some python float representation errors
2014-09-26 16:57:28 +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
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
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
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
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
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
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
Rifakat
475d2c6dec
[FIX] account: optimize code
...
bzr revid: rha@tinyerp.com-20130712065843-idr1urw86hf9zc8g
2013-07-12 12:28:43 +05:30
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
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
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
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
Quentin (OpenERP)
d9c00b129b
[FIX] account: divide the residual amount of invoices proportionally to the number of invoices partially reconciled together if needed + if necessary, do a conversion at the right currency rate
...
bzr revid: qdp-launchpad@openerp.com-20130523122855-n0o1rz9ajxkbgsnj
2013-05-23 14:28:55 +02:00
Alexandre Fayolle
b0ee634dec
[FIX] some missed access to currency_id through company_id
...
bzr revid: alexandre.fayolle@camptocamp.com-20130517080031-7j72snb9mdv91cto
2013-05-17 10:00:31 +02:00
Alexandre Fayolle
8bdccc5cd2
[FIX] work around bug preventing to validate invoices in multicompany setting
...
lp bug: https://launchpad.net/bugs/1111298 fixed
bzr revid: alexandre.fayolle@camptocamp.com-20130517073516-yko5zp0j8zlopq2d
2013-05-17 09:35:16 +02:00
Amit Dodiya
9af27348db
[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-20130517050325-08798zuz7oun7m05
2013-05-17 10:33:25 +05:30
Quentin (OpenERP)
5ceb9a84da
[FIX] account: validation of an invoice from another company was not allowed because of default value of company_id field on account.move
...
lp bug: https://launchpad.net/bugs/810548 fixed
bzr revid: qdp-launchpad@openerp.com-20130516085254-it0ff5oqlnodt5mm
2013-05-16 10:52:54 +02:00
Ravish (Open ERP)
fa9f18359f
[merge] with lateset 7.0
...
bzr revid: rmu@tinyerp.com-20130516051437-1bdcjgxey3efpw31
2013-05-16 10:44:37 +05:30
Ravish (Open ERP)
dd81c8f9c3
[FIX] transaltion of journal in company_ onchange
...
bzr revid: rmu@tinyerp.com-20130513093940-59mk45fjdg6fxmsx
2013-05-13 15:09:40 +05:30
Olivier Dony
a9d5c2d37e
[FIX] res.partner: rename commercial_id to commercial_partner_id, following corresponding change in `base`
...
bzr revid: odo@openerp.com-20130418154022-lt7frhp9c8f2boo0
2013-04-18 17:40:22 +02:00
Olivier Dony
ad1650854e
[FIX] account: recursively find proper partner to link to journal items, as discussed in bugs 1160365 and 1151947
...
lp bug: https://launchpad.net/bugs/1160365 fixed
lp bug: https://launchpad.net/bugs/1151947 fixed
bzr revid: odo@openerp.com-20130407212333-34jahthhppcz2wju
2013-04-07 23:23:33 +02:00
Cedric Snauwaert
cec486a161
[FIX]account_invoice: remove useless and ugly viol error message from the past
...
bzr revid: csn@openerp.com-20130329155938-gezglrgphnndswnr
2013-03-29 16:59:38 +01:00
Amit Dodiya
61ba9cbd10
[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-20130321052724-ck8ly3e5leo6cd2a
2013-03-21 10:57:24 +05:30
Quentin (OpenERP)
9745c8c6c6
[FIX] account: prevent the residual amount of invoices/credit notes to be negative
...
bzr revid: qdp-launchpad@openerp.com-20130315130147-1n6g5z7nghmucibo
2013-03-15 14:01:47 +01:00
Amit Dodiya
d16feda547
[FIX] make the breadcrump string translatable
...
bzr revid: ado@tinyerp.com-20130313062009-hq120fpelkd7p0qj
2013-03-13 11:50:09 +05:30
Amit Dodiya
c1e0521566
[FIX]: account: when we create invoice from portal menu got the error becuase in context we have passed list in type so code cannot handle the list
...
bzr revid: ado@tinyerp.com-20130308130227-bvm08cab4gjkco71
2013-03-08 18:32:27 +05:30
Quentin (OpenERP)
c659912b1e
[MERGE] fix of bad partner chosen for accounting entries when doing stock valuation (imply a small refactoring of the function that moves on the partner instead of being of the invoice)
...
bzr revid: qdp-launchpad@openerp.com-20130306150142-oyjyn3s7scfc31yw
2013-03-06 16:01:42 +01:00
Josse Colpaert
76ca410f82
[FIX] _find_partner refactoring for res_partner and using it in creation of stock account moves
...
bzr revid: jco@openerp.com-20130305162015-lndgz2f0z4xtd62z
2013-03-05 17:20:15 +01:00
Amit Dodiya
3d0a4e0c3d
[FIX] make the breadcrump string translatable
...
bzr revid: ado@tinyerp.com-20130228070311-zbhx3bcpqo6cgfx0
2013-02-28 12:33:11 +05:30
Xavier ALT
cf49af54a0
[FIX] account: add missing import preventing warning exception from r8731 to display correctly
...
fixup missing import from qdp-launchpad@openerp.com-20130220092832-cvge2q1xxw2aya4c
bzr revid: xal@openerp.com-20130227083820-8v0dw1toxesanyvu
2013-02-27 09:38:20 +01:00
Quentin (OpenERP)
d996cc131a
[MERGE] account: error message when trying to delete an invoice that already received a number
...
bzr revid: qdp-launchpad@openerp.com-20130220092832-cvge2q1xxw2aya4c
2013-02-20 10:28:32 +01:00
Antonin Bourguignon
81037740e1
[IMP] issue #585361 : give a more explicit error message when a user tries to delete an invoice that has been validated (i.e. assigned a sequence number)
...
also, replace the old fashioned exceptions with the new implementation (one rock, two birds)
bzr revid: abo@openerp.com-20130215171053-grkz9tkfsy2nkh3y
2013-02-15 18:10:53 +01:00