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
Antonin Bourguignon
fe7dc3d817
[IMP] remove useless whitespaces
...
bzr revid: abo@openerp.com-20130215170842-662m14hjbpqelhbu
2013-02-15 18:08:42 +01:00
Pinakin Nayi (OpenERP)
eb6ba5ba47
[IMP]account:field supplier invoice number should be set in journal entry as description
...
bzr revid: pna@tinyerp.com-20130215095801-wstbzqniydainl4s
2013-02-15 15:28:01 +05:30
Xavier ALT
5cdb8efab6
[MERGE] BUG 1096061: account: fix traceback on refund type 'modify'
...
Add docstring to account.invoice _refund_cleanup_lines() to make
explicit that a want ``lines`` as list of browse_record.
lp bug: https://launchpad.net/bugs/1096061 fixed
bzr revid: xal@openerp.com-20130215092727-mkff1tfjmi0qv72k
2013-02-15 10:27:27 +01:00
Quentin (OpenERP)
cad3d17c2c
[MERGE] fix of bug 1084819
...
lp bug: https://launchpad.net/bugs/1084819 fixed
bzr revid: qdp-launchpad@openerp.com-20130213175155-sicmreihpw8qviie
2013-02-13 18:51:55 +01:00
Fabien Pinckaers
dddc108b11
[FIX] UoM change on invoice line
...
bzr revid: fp@openerp.com-20130105232919-4yrejqrupmev3psg
2013-01-06 00:29:19 +01:00
Olivier Dony
49597f0e66
[MERGE] *: improved english wording, suggestions courtesy of OpenERP Community
...
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
2012-12-21 17:48:08 +01:00
Thibault Delavallée
f49f43958d
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121221100609-2x59amtxj4sjedcu
2012-12-21 11:06:09 +01:00
Thibault Delavallée
b37450ba49
[IMP] sale, purchase, invoice: automatically subscibe recipints of Send by email as document followers.
...
bzr revid: tde@openerp.com-20121221095902-k2xk928po48cogdm
2012-12-21 10:59:02 +01:00