Commit Graph
58 Commits
Author SHA1 Message Date
Nans Lefebvre c41170ddc5 [FIX] delivery: get correct package default weight for packages
Make a SO for some products with weight and a delivery set.
Put some products in a pack. It returns a wizard to choose the package type.
This wizard also allows to input the shipping weight.
It always defaulted to 0, instead of the sum of the weight of the products.

Due to ff7df19bd3, default_stock_quant_package_id is in context so
_default_shipping_weight would try to use stock_quant_package.shipping_weight,
which is always set to 0 at that point.
Note that furthermore, the active_id might not be a picking (e.g. a SO).
Therefore we always make the computation, with the default_picking_id in context

opw 2006566

closes odoo/odoo#33930

Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-06-12 08:53:03 +00:00
Nicolas Martinelli 3eeb77414b [FIX] delivery: package UOM
Since it is now possible to select the default UOM, do not hardcode `kg`
in the view.

opw-1920809

closes odoo/odoo#30427
2019-01-22 11:19:41 +00:00
William Henrotin ff7df19bd3 [IMP] stock: choose destination wizard
Purpose : during a transfer, if some move lines have different
destination locations and the user click on 'put in pack' button, an
warning is triggered. This message, saying : 'You cannot put in the same
pack move lines having different destination location', is replaced by a
wizard allowing the user to choose a unique destination location. This
location will be set as location_dest_id on all transfer's stock move
lines. After that, the wizard calls again the _put_in_pack() method
where all the logic remains the same.

Task : 1872345
2018-09-20 14:47:06 +02:00
qsm-odoo c59380bac5 [REF] *: BS4, rename btn-default to btn-secondary
BS4 "btn-default" class was replaced with "btn-secondary", which makes
more sense.
2018-07-27 12:36:54 +02:00
qsm-odoo 81f359c81c [REF] *: BS4, remove the use of btn-sm
Odoo made the bad choice of using the 'btn-sm' class for every button
instead of configuring the padding for default 'btn' to be smaller.
In BS4, the style of btn-sm is actually more complex, lowering the
font-size too. Also, btn-xs was removed so we would not have the
possibility to display smaller button than our default ones.

This commit removes btn-sm wherever it was used. Unfortunately, this
might remove it at some places where it made sense but this can be
restored in a second time.
2018-07-27 12:36:54 +02:00
Pierre Masereel e97fbf2d6b [IMP] delivery: packaging type max weight limit
When a max weight is set on a packaging type is set, you get a warning
when you put in pack some content that weighs bigger than the max weight
of the packaging type
2018-01-05 11:52:12 +01:00
Martin Trigaux 498bbb3fe7 [I18N] better string labels
Courtesy of the translators
2017-10-31 16:57:24 +01:00
Simon Lejeune ddf2b21bdf [REF] stock: adapt to rename of stock.pack.operation into stock.mode.line 2017-07-14 17:08:22 +02:00
Pierre Masereel 809605bb8f [REF] stock, delivery: adapt packages to new implementation 2017-07-14 17:08:21 +02:00
xmo-odoo b4429c2a91 [FIX] Various P3-related import changes
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
2017-04-28 09:06:53 +02:00
Pierre Masereel 0558d1fb39 [IMP] delivery,product,sale_stock,stock: split packaging views
As the product.packaging model is used for two different business cases,
the views shown when the model is used for product packaging must only
contains a product_id, barcode, and qty because and when it's used for
delivery packages we must show the carrier, barcode, size and wheight.

So for usability purpose, we have made two different views explicitly
called in each use case.
2017-03-14 11:47:15 +01:00
Pierre Masereel d744f8d912 [IMP] delivery: put in pack wizard
We have moved the 'quant.package' view into a wizard, because it's
always used as a wizard, and and there was context trouble with the
'Save' button as a button with nale 'write' (the context was mixed with
the field, and there were two write action whan "Save button was
clicked.
2017-01-03 17:53:37 +01:00
Quentin (OpenERP) f4cfeae2c1 [IMP] sale, delivery: improvements in workflows, buttons and SO form view. (delivery) Replaced the wizard to add delivery cost by a function on the SO directly
bzr revid: qdp-launchpad@openerp.com-20120525102643-60o5761u2mzrooa9
2012-05-25 12:26:43 +02:00
Harry (OpenERP) 24664a21a1 [MERGE] delivery: cleanup yml
bzr revid: hmo@tinyerp.com-20120105171315-u4j0x1ftc2426g1l
2012-01-05 22:43:15 +05:30
Vo Minh Thu 9a21bc6f80 [REF] removed any use of the ir module,
also removed some unused imports.

bzr revid: vmt@openerp.com-20110519121336-zby128e15q9ffhhh
2011-05-19 14:13:36 +02:00
uco (OpenERP) c3098f4f43 [FIX] account..l10n_ch: Pass return {'type': 'ir.actions.act_window_close'} instead of return {} in osv_memory/normal wizards.(lp:691544)
bzr revid: uco@tinyerp.com-20101228104445-h5q9jg8mq7dmdc51
2010-12-28 16:14:45 +05:30
uco (OpenERP) 6dd290e824 [REF]: Replace the condition 'if not context' with 'if context is None'.
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
2010-11-23 12:35:05 +05:30
uco (OpenERP) 12fcd1be2f [IMP] : Added context=None on methods used for _constraints and replaced context={} with context=None.
bzr revid: uco@tinyerp.com-20101119134801-974ev29j4tu46pq2
2010-11-19 19:18:01 +05:30
Fabien Pinckaers 4b77845710 [FIX] stock_location, logistic, better demo data
bzr revid: fp@tinyerp.com-20101011215706-zu7cl6byilud541o
2010-10-11 23:57:06 +02:00
Harry (Open ERP) d423fe65f4 [MERGE] merged lp:~openerp-dev/openobject-addons/mso-trunk-dev-addons1
bzr revid: hmo@tinyerp.com-20100426064647-6lp8331zdrthktcf
2010-04-26 12:16:47 +05:30
mso 90cd229cbb [FIX] delivery: modifications on delivery cost wizard for task 584
bzr revid: mso@mso-20100426053713-6fms6tta3ogb3gv2
2010-04-26 11:07:13 +05:30
mso dd8501d463 [IMP] delivery,sale: Delivery Cost Improvement on sale, Task id-584
bzr revid: mso@mso-20100423115016-feh97hnjecr03m9p
2010-04-23 17:20:16 +05:30
mso 620fb3c029 [ADD] stock: Task id :596 Postgres view of stock moves with filters & groups
bzr revid: mso@mso-20100423053435-vxut3668xvwn75pz
2010-04-23 11:04:35 +05:30
mso 6f4bf9dd9f [IMP]: auction,delivery: fields_list variable has been changed to fields
bzr revid: mso@mso-20100322130058-3ya7mwxa858cbvfi
2010-03-22 18:30:58 +05:30
sbh (Open ERP) dcd2c147a8 [IMP] delivery : Improve the deafult_get method and clean the code
bzr revid: sbh@tinyerp.com-20100318105942-pupazzylyy138dcs
2010-03-18 16:29:42 +05:30
mso 7b678a4a1b [MERGE]: merged the branch with module1_addons
bzr revid: mso@mso-20100318093558-yu7mliu8bgpdh3kq
2010-03-18 15:05:58 +05:30
sbh (Open ERP) b65b3ea80e [IMP] auction,stock,delivery: Used default_get method instead of _default
bzr revid: sbh@tinyerp.com-20100318063117-hkddpaydbbc09zic
2010-03-18 12:01:17 +05:30
uco (OpenERP) a268acb4c7 [REF] delivery, mrp, mrp_repair, point_of_sale, product_margin, slae, stock: Removed '@summary' from docstring.
bzr revid: uco@tinyerp.co.in-20100317073413-ks8i2ppev0pxm3cf
2010-03-17 13:04:13 +05:30
Harry (Open ERP) bdc78703ea [MERGE]
bzr revid: hmo@tinyerp.com-20100311142449-gfhiuwigpchfr074
2010-03-11 19:54:49 +05:30
uco (OpenERP) 25332c9287 [IMP] delivery: Improved code of 'Delivery Sale Order' wizard.
bzr revid: uco@tinyerp.co.in-20100310124024-netz8a8okgy30omv
2010-03-10 18:10:24 +05:30
uco (OpenERP) 484fdd2160 [ADD] delivery: Added Docstrings for functions in wizard files.
bzr revid: uco@tinyerp.co.in-20100310072318-w1x0cznvt17aor0w
2010-03-10 12:53:18 +05:30
uco (OpenERP) 077e6dd333 [IMP] delivery: Converted 'Create Delivery' wizard into osv_memory wizard.
bzr revid: uco@tinyerp.co.in-20100309130756-l082icxmetgecqzu
2010-03-09 18:37:56 +05:30
Stephane Wirtel fb3ef7a2f4 [FIX] Change the year of the copyright
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2010-01-12 10:18:39 +01:00
PSO(OpenERP) eb0b928cc0 Changed licencing terms
bzr revid: hda@tinyerp.com-20091014111534-1vtk21rz8byhszzf
2009-10-14 16:45:34 +05:30
ChristopheChauvet(syleam) 41e8ed59ef changed encoding to coding in all py files
lp bug: https://launchpad.net/bugs/357182 fixed

bzr revid: hda@tinyerp.com-20091013055837-3ntnbe8b938xmk97
2009-10-13 11:28:37 +05:30
mra (Open ERP) 7f3bc31bbc fix bug : fiscal position(map_tax,map_account)
bzr revid: mra@tinyerp.com-20090120084819-pdcl2hhuxh6csruu
2009-01-20 14:18:19 +05:30
Stephane Wirtel 21f104a506 [IMP] Update the copyright to 2009
bzr revid: stephane@tinyerp.com-20090104221250-55q32ayj2t8kzb2k
2009-01-04 23:12:50 +01:00
Fabien Pinckaers cb53a7eb70 improvement
bzr revid: fp@tinyerp.com-20081106225451-j0xvhyu0h78eo3r8
2008-11-06 23:54:51 +01:00
Christophe Simonis f5fad0ba30 passing modules in GPL-3
bzr revid: christophe@tinyerp.com-20081103191856-jhcivvwb16fvz2os
2008-11-03 20:18:56 +01:00
Fabien Pinckaers 83dc63d268 bugfixes
bzr revid: fp@tinyerp.com-20081027235825-2ugbuwqmk4so431b
2008-10-28 00:58:25 +01:00
Fabien Pinckaers 84ccb0acff bugixes_stock
bzr revid: fp@tinyerp.com-20081021162819-qx3kee4bcrevgadd
2008-10-21 18:28:19 +02:00
Fabien Pinckaers d60a6ff480 merge
bzr revid: fp@tinyerp.com-20081020204911-ili28j1mv9accl97
2008-10-20 22:49:11 +02:00
Harshad Modi abf2c94f97 Improvement :
* Purchase Order from scheduler: use tax from partner if any.  
* Report Purchase Order: if address, it uses the name of the company and the address of the customer. Change to use the name of the customer.
* Print Packing List: don't display the lines with state=confirmed (only assigned) 
* When invoice on picking: if I generate invoice on the sale order, it must set the pickings as invoiced 
* When invoicing from picking: sale order lines stays as 'To be Invoiced'
* make new method to get partner property field data same like getting address on partner module and fetch property using this function on needed on onchange partner on sale, purchase module
* on delivery module, take taxes from partner if partner has default tax other wise take from delivery product when creation invoice line 
* on overdue payment report, tel no is display with company invoice address's tel no
* Purchase Order from scheduler : assign note of purchase order line with product purchase description 
* product model : all description should be translatable 
* fixed bug : on scheduler.py file on mrp module ( got error when select Auto orderpoint on scheduling wizard)
* fixed bug : on product available function on stock module ( got error when call it with field_name=None )

bzr revid: hmo@tinyerp.com-20080926102510-nrjwloh0ojkl4hgn
2008-09-26 15:55:10 +05:30
Harshad Modi 959c926ae5 Improvement on delivery grid tree view
bzr revid: hmo@tinyerp.com-20080920115120-ew4uk5vu4r10yk3h
2008-09-20 17:21:20 +05:30
Harshad Modi 4f1a35dd18 * see the price if we select carrier from a sale order (wizard add delivery, or form in second tab) : for that pass active order id in context
bzr revid: hmo@tinyerp.com-20080920085020-d6bxrk5ogjfc0wny
2008-09-20 14:20:20 +05:30
Christophe Simonis 3e3d897e88 add encoding comment and vim comment
bzr revid: christophe@tinyerp.com-20080723144147-77o5t9adx26a84lt
2008-07-23 16:41:47 +02:00
Christophe Simonis d2ff95f665 replace tabs with 4 spaces
bzr revid: christophe@tinyerp.com-20080722151128-f5zy75tsn8pgtndd
2008-07-22 17:11:28 +02:00
Christophe Simonis 1f43329f0e * translation of nearly all exceptions
* the export of translations per module take only the files of these modules

bzr revid: chs@tinyerp.com-77721e34d87043c4008239f004c7c616f6d4dc82
2008-07-08 08:13:12 +00:00
stw 0feb782c6a add Copyright and GPL license into the Header of Python files
bzr revid: stw-d9a6d631f7cfdab5a120a6b0104ce2dbf8644841
2008-06-16 11:00:21 +00:00
ced 79737e18e2 Fix invoice on shipping
- use the right action to open invoice
- don't override the wizard -> override the object

bzr revid: ced-551748b81e7462f7700999a9cb555555665392ed
2007-09-26 05:20:08 +00:00