Commit Graph
214 Commits
Author SHA1 Message Date
Cédric Krier 9a57279219 Add missing company domain/field
issue4311
review7691002
2014-12-03 16:14:05 +01:00
Cédric Krier 22f5fcba0b Fix most flake8 errors
review8771002
2014-12-02 12:55:52 +01:00
Robin Baumgartner 4ed93d01c9 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:03:13 +01:00
Cédric Krier 0403f08dd0 New API for on_change
issue4203
review8581002
2014-10-29 20:40:13 +01:00
Cédric Krier ee92de727e Round quantity before using it on invoice line or stock move
Precision can be lost also with only addition and substraction because of
float, so quantity must be rounded before used on invoice line or stock move.

issue4191
review7621002
2014-09-30 09:43:47 +02:00
Cédric Krier 4d99baa3bb Add Tax rounding configuration
issue4106
review11401002
2014-09-17 22:20:32 +02:00
Cédric Krier 104bb86867 Use context to check model and field access
issue4081
review8481002
2014-09-17 21:45:49 +02:00
Cédric Krier c78e46830e Re-use on_change_with_amount in get_amount
issue4167
review12501002
2014-09-13 15:24:28 +02:00
Sergi Almacellas Abellana c5b5d5c681 Fix relation between invoice lines and stock moves in partial delivery
issue4003
review9691002
2014-09-10 11:05:56 +02:00
Sergi Almacellas Abellana c7542c8d1c Fix return sale wizard with lines with type diferent than line
issue4077
review9521002
2014-07-24 12:34:22 +02:00
Nicolas Évrard c594b231af Make party readonly in case there is lines
issue3942
review5321002
2014-07-11 18:18:36 +02:00
Cédric Krier 8619a99bb8 Compare quantity to unit rounding instead of zero
issue3965
review8381002
2014-06-09 18:05:29 +02:00
Cédric Krier 1be091b153 Add link between stock moves and invoice lines
issue3614
review3181002
2014-03-18 21:13:47 +01:00
Cédric Krier 334f8e1354 Remove explicit link between sale and invoice
issue3623
review4261002
2014-03-17 23:22:34 +01:00
Nicolas Évrard 52b6c0af48 Add sale_shipment_grouping module
review3591002
2014-03-16 21:40:29 +01:00
Cédric Krier e27b25f955 Be safer with the on_change using One2Many values
review4261002
2014-03-16 15:44:58 +01:00
Cédric Krier b73bb9445c Improve sale amount computation and remove total from list view
issue3738
review4121003
2014-03-10 20:22:42 +01:00
Nicolas Évrard 20840c0e3f Do not trigger the workflow transition on process
issue3676
review3511003
2014-02-20 18:13:42 +01:00
Nicolas Évrard 25acbc1f3f Allow transition from done to processing
review2351004
issue3564
2014-02-03 17:03:57 +01:00
Nicolas Évrard e35a65ae7b Add required states to invoice and shipment address
issue3574
review2541002
2014-01-26 17:33:53 +01:00
Cédric Krier 9a4bb59d18 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:31 +01:00
Cédric Krier 2e425c9dd9 Fix computation of done state for purchase and sale
Allow to go to done state when one sub-state is none and nothing was generated
for it.

issue3550
review2221002
2014-01-04 19:39:20 +01:00
Albert Cervera i Areny 7acf4368ae Fix typo.
review1441004
2013-10-31 00:16:55 +01:00
Cédric Krier db35ecca35 Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.

issue3394
review1119002
2013-10-09 18:25:47 +02:00
Cédric Krier 04b0169e29 Fix flake8 2013-10-05 12:17:20 +02:00
Cédric Krier 589a8524f2 Move code in right files following guide lines 2013-09-23 11:25:31 +02:00
Nicolas Évrard f0ec950f89 Do not override existing lines in invoice creation
review931002
2013-09-19 18:45:11 +02:00
Nicolas Évrard 5a3668f8d9 Replace reference copying by relate
review932002
2013-09-19 17:34:09 +02:00
Cédric Krier 3c4a07146b Migration to python-sql
review1001002
2013-09-06 22:34:40 +02:00
Cédric Krier 0e0d3b0bdc Create invoice line for non-line only once
issue3292
review1043002
2013-09-02 11:19:37 +02:00
Cédric Krier 31d07a8d6a Better user experience with "Return Sale" wizard
- it should ask for confirmation
- it should show the created return sales

review975004
2013-07-22 14:41:56 +02:00
Cédric Krier 06a2f23eb5 Fix shipment method "On Invoice Paid"
Select lines only if invoice state is paid and not posted.

issue3269
review978002
2013-07-12 10:31:05 +02:00
Albert Cervera i Areny d24eb8ba5b Fix bug in error string formatting. 2013-06-27 21:39:46 +02:00
Cédric Krier 9c62fd34a3 Use stock move worklow instead of overriding write
review902002
2013-06-01 00:13:21 +02:00
Cédric Krier 257aa9c21d Use one getter for all amounts
issue2936
review897002
2013-06-01 00:01:39 +02:00
Cédric Krier 007f299220 Remove salable from context
issue2514
review887002
2013-05-27 18:09:43 +02:00
Cédric Krier c451ad0fc9 Set invoice_type on invoice line
review864002
2013-05-18 00:13:13 +02:00
Cédric Krier 40c38796d8 Don't set delivery_date for negative quantity
review789002
2013-04-16 15:26:42 +02:00
Udo Spallek 0f19e9f378 Add missing Active Record migration.
Unify arguments of raise_user_error().
issue3088
review738003
2013-03-25 21:01:32 +00:00
Cédric Krier 044d4da36b Use origin Reference on Invoice Line and Stock Move
issue2642
review717002
2013-03-23 15:40:22 +01:00
Cédric Krier 3b201c51d1 Remove _inherits
review670002
2013-03-20 22:51:06 +01:00
Albert Cervera i Areny 8ed0ec952d Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:55:52 +01:00
Cédric Krier 7f79767d31 Sale.process must be called with root
As process write on sale, it must be called with root from stock models.

review669003
2013-03-06 17:23:18 +01:00
Cédric Krier a7b988992e Fix flake8 2013-02-24 15:51:12 +01:00
Albert Cervera i Areny 03c5b45e7b Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 53c4bcc693 Update to new invoice states
review583002
2012-12-23 22:30:44 +01:00
Cédric Krier f7f0cb8f7f Add sale, purchase or other kind on Tax Rule and Tax Group
review587003
2012-12-05 13:02:41 +01:00
Cédric Krier 629e2395e0 Store default language in database
review592004
2012-11-23 18:01:04 +01:00
Cédric Krier 2f166d30c3 Change unit value earlier if needed in on_change_product
issue2761
2012-10-20 23:34:35 +02:00
Cédric Krier 119a04fe85 Fix OpenCustomer to not call browse with int
issue2836
review572002
2012-10-20 23:28:13 +02:00