Commit Graph

439 Commits

Author SHA1 Message Date
David Monjoie 88349d0fab [FIX] point_of_sale: added date_done field value on generated stock.picking
Fix for Issue 627561 (5169 on Github)
2015-02-11 10:23:02 +01:00
Martin Trigaux 52a39e2dd2 [IMP] point_of_sale: check also inactived products
use search_count instead of search
2015-01-19 15:26:42 +01:00
Martin Trigaux c637a0ff1c [IMP] point_of_sale: prevent deleting products that may be sold
When a pos.session is launched, all the products are loaded. If the product
was deleted in the backend, it was still possible to sell it in the pos.
2015-01-19 15:11:59 +01:00
Martin Trigaux edf3beee67 [IMP] point_of_sale: extract creation of order in separate method
To allow overwrite in submodules and more readable code.
2015-01-19 15:11:51 +01:00
Denis Ledoux 87dd06c941 [MERGE] forward port of branch saas-3 up to 8c150c6 2015-01-15 14:43:32 +01:00
Denis Ledoux a692c6e934 [MERGE] forward port of branch 7.0 up to f406847 2015-01-15 11:49:28 +01:00
Christophe Simonis ba5978afef [FIX] point_of_sale: correct pos.category name_get() to show whole hierarchy 2015-01-14 16:06:43 +01:00
Nicolas Seinlet 35a061eb0d [IMP] point_of_sale: faster loading of pos session
name_get of pos.category should use a browse instead of a read.
For a company having thousands of products and a few categories, using a browse
will greatly improve the load time as it is cached.
2015-01-14 13:45:20 +01:00
Denis Ledoux e261c44a10 [FIX] point_of_sale: ACLs for pos users
POS users should not be able to create nor modify payment methods (account.journal)
POS users should not be able to create nor modify point of sales (pos.config)

At first opened session, if no payment methods was set, this is possible that the pos user should temporary have accesses granted to mark a payment method as pos payment method. This is done by the openerp.SUPERUSER_ID added by this rev.

opw-625489
2015-01-13 18:15:30 +01:00
Alexis de Lattre a9907aac8a [FIX] point_of_sale: do not group move lines with different analytic account
When generating account.move.line from pos.order, orders with different analytic
account should not be groupped in generated lines (possible if inherit
_prepare_analytic_account).
Add the analytic_account_id in the key to avoid this grouping.
Fixes #4602
2015-01-09 12:14:45 +01:00
Martin Trigaux 7a13e9d744 [FIX] point_of_sale: account selection for payments
Registered payment uses the partner receivable account. As this field is
a property field, it will select different accounts based on the user that
registers the payment (in multicompany).
Should use the company of selected journal instead of the one of the user.
2014-12-16 10:53:30 +01:00
Frederic van der Essen d1fb79ad14 [FIX] point_of_sale: some pos order fields were missing the proper decimal precision 2014-11-11 18:00:24 +01:00
Alexis de Lattre 6dcb8232eb point_of_sale: Add _prepare_analytic_account method to easily set analytic account from custom module 2014-10-27 23:52:43 +01:00
Martin Trigaux a6343387d7 [IMP] point_of_sale: add constraint on company
Using a payment method belonging to another company will raise errors when closing the session.
To avoid being stuck at session closing, forbid to create a POS using a journal of another company.
2014-10-17 17:21:30 +02:00
Frederic van der Essen 5377a9e2d6 [IMP] point_of_sale: partner edition ! -> create partners, edit partners, assign them barcodes, take pictures, etc. 2014-09-17 16:57:34 +02:00
Olivier Dony e5bff82aff [MERGE] Forward-port saas-5 up to f9bcd67 2014-09-17 16:39:06 +02:00
Olivier Dony c926b54a49 [MERGE] Forward-port saas-3 up to 09ab2d4 2014-09-17 15:16:30 +02:00
Denis Ledoux 60a82133cc [MERGE] forward port of branch 7.0 up to f5f7609 2014-09-17 13:39:13 +02:00
Denis Ledoux ce84d6107f [FIX] point_of_sale: set journal as pos payment method on setting journal in the payment methods of a pos config when none is set. 2014-09-16 17:57:03 +02:00
Frederic van der Essen 2a10394880 [FIX] point_of_sale: the self_checkout related fields are obsolete and should be removed, but we are too late in the release schedule to do so. Marking them as FIXME, to be removed for next major version 2014-09-08 18:06:51 +02:00
Christophe Simonis 8046b7367d [MERGE] forward port of branch saas-5 up to 7e117b1 2014-08-28 16:51:11 +02:00
Christophe Simonis 7e117b18a0 [MERGE] forward port of branch saas-3 up to ada9724 2014-08-28 16:21:27 +02:00
Christophe Simonis ada9724655 [MERGE] forward port of branch 7.0 up to 3509e15 2014-08-28 16:12:55 +02:00
Martin Trigaux 69cd13a084 [FIX] point_of_sale: incorrect sequences for orders
A new ir.sequence is generated at pos.config creation for the orders. However it was not used as the type was not set. The fallback was done on the general sequence.
In addition to the sequences being shared, it was not possible to create a pos.order in multicompany (no sequence found for user company, name was null).
Same issue for the pos.order.line.
This patch generates correctly pos.order and pos.order.line sequences at pos.config creation.

Instead of using the pos.config sequence to generate session number (not what this field was intended to), use the existing sequence for pos.session.
Remove company_id value on default pos.session sequence to make sure it's shared between companies and correctly set the prefix.
2014-08-26 16:33:58 +02:00
Martin Trigaux f6dceb2ef6 [IMP] point_of_sale: prevent multicompany configuration issues
If the pos.config is not properly configured for multicompany (e.g. using location belonging to another company), launching a session with this config may fail (access rights).
This prevents to configure an incorrect point of sale in the first place.
2014-08-26 16:15:22 +02:00
Martin Trigaux 73546f70ca [FIX] point_of_sale: generate bank statement with commerical partner
When a pos session is closed & confirmed, the account.move were generated with the commercial partner except for the bank statement which prevented automatic reconciliation.
This patch uses the commercial partner also for bank statement.
Fixes #1558, #1764
2014-08-22 15:29:23 +02:00
Fabien Pinckaers d14297ac53 [FIX] better responsibilities on objects POS 2014-08-21 10:38:21 +02:00
Frederic van der Essen 0829afadd2 [FIX] point_of_sale: continuation of the session closing fix 2014-08-20 23:08:20 +02:00
Frederic van der Essen 62a8e5b457 [FIX] point_of_sale: partial fix for unclosable sessions 2014-08-20 22:24:21 +02:00
Christophe Simonis 1d85c667f7 [FIX] point_of_sale: correct SyntaxError 2014-08-20 20:24:09 +02:00
Fabien Pinckaers 76a84ce2bf [FIX] partner of order 2014-08-20 19:38:41 +02:00
Antony Lesuisse d421f9a365 [IMP] point_of_sale: track session logins
the pos session now keeps track of the session logins, and that number is
included in in the order reference. This prevents orders generated in parallely
created sessions from having the same reference, and also helps reduce fraud.
2014-08-20 15:13:46 +02:00
Frederic van der Essen ffba505817 [FIX] point_of_sale: updated the tooltip for the to weight option to make it clearer that it is to be used with the hardware scale integration 2014-08-19 18:02:17 +02:00
Frederic van der Essen d91263d03e [FIX] point_of_sale: #1558 The partner was not correctly identified on the bank statement line, creating open balances on the partner account 2014-08-11 18:02:28 +02:00
Frederic van der Essen 85d697670c [IMP] point_of_sale: show traceback popup when there is a server error when posting orders (which should NEVER happen !) 2014-08-05 14:04:50 +02:00
Frederic van der Essen 8e212eb6fb [FIX] point_of_sale: it was impossible to delete a pos session 2014-08-05 14:04:38 +02:00
Denis Ledoux 1bb219907f [MERGE] forward port of branch saas-5 up to 655a5b9 2014-08-04 16:56:10 +02:00
Christophe Matthieu 7efe3bb2d8 [FIX] point_of_sale: On product form : push on button 'Set a Custom Ean' on tab information raise an exception => Use a record action and clean python files 2014-07-31 17:21:26 +02:00
qdp-odoo 954ab3eefb Merge pull request #1268 from odoo-dev/8.0-pos-fixes-qdp
[FIX] point_of_sale: fixed errors that avoid closing a pos session + [IM...
2014-07-22 08:58:02 +02:00
qdp-odoo 5ae60d8a2d [FIX] point_of_sale: fixed errors that avoid closing a pos session + [IMP] account: added back the account_id field on statement.line obj to ease the reconciliation process when importing statements (or creating them through pos.orders). Fix #932 2014-07-18 15:43:20 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Raphael Collet 33eb3dffb2 [REM] models: remove the magic methods signal_XXX() 2014-07-07 11:50:30 +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
Frederic van der Essen 7842b62880 [MERGE] from master 2014-07-01 13:32:28 +02:00
Frederic van der Essen c4049bc356 [WIP] removing incomplete fidelity points feature for the v8.0 release 2014-07-01 13:02:02 +02:00
Martin Trigaux 6db8bf3def Merge pull request #326 from hmen89/master
[ADD] point_of_sale: make the creation of orders and payment inheritable in create_from_ui method
2014-06-27 11:55:24 +02:00
Christophe Simonis 8cabd5eac9 merge upstream 2014-06-25 19:08:49 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Grover Menacho 6284fbbbf0 [ADD] FIXED create_from_ui inheritable to add more fields on order and payment 2014-06-23 17:06:55 -04:00
Dimitri del Marmol 49d7b107d1 Pull request feedback by chs 2014-06-13 17:27:59 +02:00