Commit Graph

179 Commits

Author SHA1 Message Date
Nicolas Lempereur ed61da6793 [FIX] base: duplicate company => duplicate partner
The name of a company is uniq. The name of a company comes from a
partner and is required.

Thus duplicating a company didn't work.

With this change, if no partner is overriding the copy, the current
partner is duplicated and associated to the new duplicated company.

opw-746106
closes #17532
2017-06-12 11:14:06 +02:00
Denis Ledoux dc1b8a5a51 [FIX] res_company: some information missed on company creation
On the `res.company` model, the fields
`name`, `phone`, `email`, `website`, `vat` are
related field on the `partner_id` of the company.

When creating a new company, the partner
associated to the company is created automatically,
it's handled in the overrided `create` method
of the model, but it forgots the values
`phone`, `email`, `website`, `vat` at the moment
the partner is being created.

opw-675526
2016-04-25 12:37:06 +02:00
Goffin Simon c0571d4066 [FIX] base: by default a company is not a customer
When creating a company, a new partner is created with his field
'customer' = True. But by default a company doesn't have to be
a customer.

opw:667130
2016-01-19 17:02:32 +01:00
Antony Lesuisse 8f07f01783 [FIX] base: res.company _company_default_get
Fix rule processing the criteria user.company_id was not honored.

Closes: #4614, #7504
2015-07-16 14:38:13 +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 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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Christophe Simonis 96f744b271 [MERGE] forward port of branch saas-3 up to revid 5088 chs@openerp.com-20140311095550-lg3nvvjyojvgp2po
bzr revid: chs@openerp.com-20140311133850-11bw9vv90e40clw1
2014-03-11 14:38:50 +01:00
Denis Ledoux a76cedfee3 [FIX] base: widget selection changed its behavior in saas-3
_search overwritten in res_company to allow user to change of company among its allowed companies is not usefull anymore, name_search is now the method to overwrite.
moreover, widget selection replaced by options no_create in user preferenes view, to allow typing in the many2one(for searching purpose) without having the option to create a new company or edit.

bzr revid: dle@openerp.com-20140304175231-ojhzqecrdkjg2w52
2014-03-04 18:52:31 +01:00
Christophe Simonis 65db3c635e [MERGE] forward port of branch saas-2 up to revid 5014 mat@openerp.com-20140220145701-6y7s1roj88q7ys13
bzr revid: chs@openerp.com-20140220160548-0rhulha4cml6t08v
2014-02-20 17:05:48 +01:00
openerp-sle 1e0d15e5ec [FIX] Added the 'oldname' attribute on the renamed 'paper_format' field
bzr revid: openerp-sle@openerp-sle.home-20140217153459-3hcxvzmd1j5vvwgq
2014-02-17 16:34:59 +01:00
Martin Trigaux 5e9e447eb0 [FIX] fonts: move domain on field instead of view and use capitalised version of mode (would not found any otherwise)
bzr revid: mat@openerp.com-20140217134823-p0i7nj6ljqslgwr1
2014-02-17 14:48:23 +01:00
openerp-sle 5e535ee4f3 [IMP] Renamed paper_format to rml_paperformat and moved report's related configuration into a tab in the company form
bzr revid: openerp-sle@openerp-sle.home-20140212115350-2p9ky7ei2t9q99xs
2014-02-12 12:53:50 +01:00
Xavier Morel 0546993327 [FIX] merge from trunk and fix handling of view inheritance
main problem, view inheritance model field would use model from the
root view (after following inherit_id links) rather than the base view
(the requested one) -> with divergent models, it was possible for the
requested view itself to never be returned.

bzr revid: xmo@openerp.com-20131212134422-uxg6h21w1jhth9ow
2013-12-12 14:44:22 +01:00
Martin Trigaux aac5c9d6eb [IMP] font: better handeling of multiworker environement
bzr revid: mat@openerp.com-20131209151454-5rylu5alldd3ixmh
2013-12-09 16:14:54 +01:00
Martin Trigaux 5f1f44401f [FIX] font: revert previous (use name and not familly in reportlab), fix reports using spaces
bzr revid: mat@openerp.com-20131209133742-7u1sesoinrmfpwf0
2013-12-09 14:37:42 +01:00
Martin Trigaux 48cce10a7a [FIX] font: correct call to font_scan, add book to displayed mode
bzr revid: mat@openerp.com-20131209132109-c2bluohdj7hkp2px
2013-12-09 14:21:09 +01:00
Martin Trigaux a9b98a88a9 [IMP] font: add security rule, lazy loading at first report rendering
bzr revid: mat@openerp.com-20131209110511-l72dgop00bfdeq3v
2013-12-09 12:05:11 +01:00
Martin Trigaux 30c3f13ab7 [FIX] font: better default and don't trigger onchange if no font selected
bzr revid: mat@openerp.com-20131203154116-mzqfvu02r8kx2xt3
2013-12-03 16:41:16 +01:00
Martin Trigaux eda37d12e6 [FIX] font: add columns for family, path and mode
bzr revid: mat@openerp.com-20131203151753-ycz8pyp1eg382qps
2013-12-03 16:17:53 +01:00
Fabien Pinckaers ed5ea188f6 [IMP] Speed improvement: 27 SQL queries -> 13 SQL queries per static pages on CMS
bzr revid: fp@tinyerp.com-20131130172319-gq9udvjhv9m83d7n
2013-11-30 18:23:19 +01:00
Martin Trigaux b9c3d93416 [IMP] font: handle better the difference of fonts
bzr revid: mat@openerp.com-20131014150507-4ueuyyneo6h2f6ju
2013-10-14 17:05:07 +02:00
Martin Trigaux 53e8625cea [FIX] font: cleaning and better default data
bzr revid: mat@openerp.com-20131014123815-6tnegdiv4cnaimtf
2013-10-14 14:38:15 +02:00
Martin Trigaux 3798b1ed96 [IMP] better labels
bzr revid: mat@openerp.com-20131014101523-bwb4lda2rxbqpb8a
2013-10-14 12:15:23 +02:00
Martin Trigaux b3a8a4493d [IMP] fonts: adapt fonts to many2one instead of list
bzr revid: mat@openerp.com-20131014094122-6ndc5scni2xyzksy
2013-10-14 11:41:22 +02:00
Martin Trigaux cd94736f1f [ADD] report: support for dynamic fonts in report
search for TTF file on the system (in typical repositories)
add font field on the company and config wizard, the chosen value will replace the fontName value by the new one

bzr revid: mat@openerp.com-20131003141307-y6rsfooxepfgmofd
2013-10-03 16:13:07 +02:00
Martin Trigaux dd2cbe92b5 [FIX] report: default font set as helvetica
bzr revid: mat@openerp.com-20131003135018-2jr68cfbffda53m3
2013-10-03 15:50:18 +02:00
Martin Trigaux aa30437603 [IMP] one global list, remove hard coded list of font
bzr revid: mat@openerp.com-20131002101956-y6jt4d13bbku12g3
2013-10-02 12:19:56 +02:00
Dharmraj Zala (OpenERP Trainee) 92aebae8af [IMP] improved code and defaults
bzr revid: dizzy.zala@gmail.com-20130920062115-r8vr770nwg7450ja
2013-09-20 11:51:15 +05:30
Dharmraj Zala (OpenERP Trainee) b1647e2d32 [IMP] miscellaneous improvements
bzr revid: dizzy.zala@gmail.com-20130917055129-zvh1tbhghy1vr9oc
2013-09-17 11:21:29 +05:30
Dharmraj Zala (OpenERP Trainee) b1e66aa382 [IMP] miscellaneous improvements
bzr revid: dizzy.zala@gmail.com-20130913132707-gxjtq6mcrz9btgty
2013-09-13 18:57:07 +05:30
Dharmraj Zala (OpenERP Trainee) a20a7f20a8 [IMP] code improvement
bzr revid: dizzy.zala@gmail.com-20130912120059-rnn784u646xph74l
2013-09-12 17:30:59 +05:30
Dharmraj Zala (OpenERP Trainee) 420c4a9489 [IMP] improved header templates
bzr revid: dizzy.zala@gmail.com-20130911112401-9oe7kvus5nirx9ic
2013-09-11 16:54:01 +05:30
Dharmraj Zala (OpenERP Trainee) 5ae665f803 [IMP] improved get_font_list method so user can have choice of available fonts to print rml reports
bzr revid: dizzy.zala@gmail.com-20130911105912-6pov1orhqo39qeb2
2013-09-11 16:29:12 +05:30
Dharmraj Zala (OpenERP Trainee) 4bd0540505 [IMP] added a global method for getting system font list
bzr revid: dizzy.zala@gmail.com-20130911064104-6umza2px5v4oltk2
2013-09-11 12:11:04 +05:30
Rohan Nayani (Open ERP) b78fb03175 removed sun-Exta.ttf font from list
bzr revid: ron@tinyerp.com-20130813085617-up6r271dmzfkc452
2013-08-13 14:26:17 +05:30
Chirag Dodiya (OpenERP Trainee) ce8fb2e1b7 [IMP] Puted help as per review suggestion
bzr revid: chiragdd7@gmail.com-20130618093655-tnwc1jkbnz5hi1b1
2013-06-18 15:06:55 +05:30
Chirag Dodiya (OpenERP Trainee) 57de566d67 [MERGE] merge with server
bzr revid: chiragdd7@gmail.com-20130614064912-2fbrw3knc3kdzmbk
bzr revid: chiragdd7@gmail.com-20130617052728-kjzu2ngntuoj6r35
2013-06-17 10:57:28 +05:30
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
Chirag Dodiya (OpenERP Trainee) 72604e8b12 [IMP] Improved Code as per Review suggestion
bzr revid: chiragdd7@gmail.com-20130612133227-xjf0d22bnwk4eota
2013-06-12 19:02:27 +05:30
Chirag Dodiya (OpenERP Trainee) 3398bd1402 [IMP]Changed In Parastyle
bzr revid: chiragdd7@gmail.com-20130612070728-yk4t52kpczdtt7bq
2013-06-12 12:37:28 +05:30
Chirag Dodiya (OpenERP Trainee) 489196ee76 Added selection field into company, set font dynamically to all para style in header
bzr revid: chiragdd7@gmail.com-20130611121310-35ogs0ler806hkov
2013-06-11 17:43:10 +05:30
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Quentin (OpenERP) 40ea4556de [FIX] base, res_company: typo in default paraStyle tagname
bzr revid: qdp-launchpad@openerp.com-20130531074745-ycfvlzrvlkrli33h
2013-05-31 09:47:45 +02:00
Quentin (OpenERP) a5d944fb87 [IMP/FIX] base, res_company: changed the default headers in order to add the default styles in generated RML, to allow their modification (and the report printing of chinese characters, for example)
bzr revid: qdp-launchpad@openerp.com-20130528085920-ifabgl11jfimixqd
2013-05-28 10:59:20 +02:00
Vishmita Jadeja (openerp) 8c9675e75e [IMP]on change of country > If the selected state is of same country then don't change it and if it is of any other country then make it blank
bzr revid: vja@tinyerp.com-20130515133450-db0xs8fmm67t9orj
2013-05-15 19:04:50 +05:30
Vishmita Jadeja (openerp) 6f953c189a [FIX]Improve Code
bzr revid: vja@tinyerp.com-20130515105846-zkflow45bsbhe3ym
2013-05-15 16:28:46 +05:30
Vishmita Jadeja (openerp) fa9abf91f7 [Merge]Merge with openobject-server
bzr revid: vja@tinyerp.com-20130515095510-rrl5xeen0a1oxzvu
2013-05-15 15:25:10 +05:30
Olivier Dony 0ee404c054 [FIX] res.partner: always call write() with a list of IDs, a single ID is not valid! (even if it works sometimes)
bzr revid: odo@openerp.com-20130424131625-aeljtyo5yuiyrlcz
2013-04-24 15:16:25 +02:00
Vishmita Jadeja (openerp) e992bb8af8 [Merge]Merge lp:openobject-server
bzr revid: vja@tinyerp.com-20130417094236-kih1h8m4hv7b1jeq
2013-04-17 15:12:36 +05:30