diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index 22b04e05f39..5936e29fe29 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -62,7 +62,6 @@ class aged_trial_report(rml_parse.rml_parse, common_report_header): def _get_lines(self, form): res = [] - account_move_line_obj = pooler.get_pool(self.cr.dbname).get('account.move.line') self.cr.execute('SELECT DISTINCT res_partner.id AS id,\ res_partner.name AS name \ FROM res_partner,account_move_line AS l, account_account\ @@ -219,7 +218,6 @@ class aged_trial_report(rml_parse.rml_parse, common_report_header): def _get_lines_with_out_partner(self, form): res = [] - account_move_line_obj = pooler.get_pool(self.cr.dbname).get('account.move.line') move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted'] diff --git a/addons/account/report/account_tax_report.py b/addons/account/report/account_tax_report.py index b03aea5c05d..d3fb791bfaa 100644 --- a/addons/account/report/account_tax_report.py +++ b/addons/account/report/account_tax_report.py @@ -190,7 +190,6 @@ class tax_report(rml_parse.rml_parse): bcl_rup_ind = ind - 1 while (bcl_current_level >= int(accounts[bcl_rup_ind]['level']) and bcl_rup_ind >= 0 ): - tot_elem = copy.copy(accounts[bcl_rup_ind], context=context) res_tot = { 'code': accounts[bcl_rup_ind]['code'], 'name': '', 'debit': 0, diff --git a/addons/account_voucher/invoice.py b/addons/account_voucher/invoice.py index a2cf45391fb..7b6d232d702 100644 --- a/addons/account_voucher/invoice.py +++ b/addons/account_voucher/invoice.py @@ -19,8 +19,7 @@ # ############################################################################## -import netsvc -from osv import fields, osv +from osv import osv from tools.translate import _ class invoice(osv.osv): diff --git a/addons/auction/__openerp__.py b/addons/auction/__openerp__.py index 7105102b385..c26a1f1bbfb 100644 --- a/addons/auction/__openerp__.py +++ b/addons/auction/__openerp__.py @@ -42,6 +42,7 @@ 'depends': ['base', 'account', 'hr_attendance'], 'init_xml': ['auction_sequence.xml', 'auction_data.xml'], 'update_xml': [ + 'security/auction_security.xml', 'security/ir.model.access.csv', 'wizard/auction_lots_make_invoice_buyer_view.xml', 'wizard/auction_lots_make_invoice_view.xml', diff --git a/addons/auction/auction_view.xml b/addons/auction/auction_view.xml index 1cda8ceba60..a3fb7b5a28a 100644 --- a/addons/auction/auction_view.xml +++ b/addons/auction/auction_view.xml @@ -1,8 +1,9 @@ - - + + @@ -80,7 +81,8 @@ - + @@ -485,6 +487,7 @@ + Objects auction.lots form tree,form,graph @@ -762,7 +765,7 @@ - + - - + + domain="[('month','=',time.strftime('%%m'))]" + help="Auction during current month."/> + domain="[('month','=',(datetime.date.today() - datetime.timedelta(365/12)).strftime('%%m'))]" + help="Auction during last month."/> @@ -74,7 +75,7 @@ - + form tree,graph - {'search_default_month':1} + {'search_default_month':1,'search_default_sold':1,'search_default_auction_date':1, 'group_by':[], 'group_by_no_leaf':1} diff --git a/addons/auction/security/auction_security.xml b/addons/auction/security/auction_security.xml new file mode 100644 index 00000000000..32fdf0d64f3 --- /dev/null +++ b/addons/auction/security/auction_security.xml @@ -0,0 +1,13 @@ + + + + + + Auction / Manager + + + Auction / User + + + + \ No newline at end of file diff --git a/addons/auction/security/ir.model.access.csv b/addons/auction/security/ir.model.access.csv index cd4ec1a77f0..31f3182fa04 100644 --- a/addons/auction/security/ir.model.access.csv +++ b/addons/auction/security/ir.model.access.csv @@ -1,18 +1,23 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_auction_artists","auction.artists","model_auction_artists","base.group_user",1,1,1,1 -"access_auction_dates","auction.dates","model_auction_dates","base.group_user",1,1,1,1 -"access_auction_deposit","auction.deposit","model_auction_deposit","base.group_user",1,1,1,1 -"access_auction_deposit_cost","auction.deposit.cost","model_auction_deposit_cost","base.group_user",1,1,1,1 -"access_auction_lot_category","auction.lot.category","model_auction_lot_category","base.group_user",1,1,1,1 -"access_auction_lots","auction.lots","model_auction_lots","base.group_user",1,1,1,1 -"access_auction_bid","auction.bid","model_auction_bid","base.group_user",1,1,1,1 -"access_auction_bid_line","auction.bid.line","model_auction_bid_line","base.group_user",1,1,1,1 -"access_auction_lot_history","auction.lot.history","model_auction_lot_history","base.group_user",1,1,1,1 -"access_report_auction","report.auction","model_report_auction","base.group_user",1,0,0,0 -"access_report_auction_object_date","report.auction.object.date","model_report_auction_object_date","base.group_user",1,0,0,0 -"access_report_auction_adjudication","report.auction.adjudication","model_report_auction_adjudication","base.group_user",1,0,0,0 -"access_report_object_encoded","report.object.encoded","model_report_object_encoded","base.group_user",1,0,0,0 -"access_aie_category","aie.category","model_aie_category","base.group_user",1,0,0,0 +"access_auction_artists","auction.artists","model_auction_artists","group_auction_manager",1,1,1,1 +"access_auction_dates_manager","auction.dates manager","model_auction_dates","group_auction_manager",1,1,1,1 +"access_auction_deposit_manager","auction.deposit manager","model_auction_deposit","group_auction_manager",1,1,1,1 +"access_auction_deposit_cost","auction.deposit.cost","model_auction_deposit_cost","group_auction_manager",1,1,1,1 +"access_auction_lot_category","auction.lot.category","model_auction_lot_category","group_auction_user",1,0,0,0 +"access_auction_lot_category_manager","auction.lot.category manager","model_auction_lot_category","group_auction_manager",1,1,1,1 +"access_auction_lots","auction.lots","model_auction_lots","group_auction_user",1,1,1,1 +"access_auction_lots_manager","auction.lots manager","model_auction_lots","group_auction_manager",1,0,0,0 +"access_auction_bid","auction.bid","model_auction_bid","group_auction_user",1,1,1,1 +"access_auction_bid_manager","auction.bid manager","model_auction_bid","group_auction_manager",1,0,0,0 +"access_auction_bid_line","auction.bid.line","model_auction_bid_line","group_auction_user",1,1,1,1 +"access_auction_bid_line_manager","auction.bid.line manager","model_auction_bid_line","group_auction_manager",1,0,0,0 +"access_auction_lot_history","auction.lot.history","model_auction_lot_history","group_auction_user",1,1,1,1 +"access_auction_lot_history_manager","auction.lot.history manager","model_auction_lot_history","group_auction_manager",1,0,0,0 +"access_report_auction","report.auction","model_report_auction","group_auction_manager",1,1,1,1 +"access_report_auction_object_date","report.auction.object.date","model_report_auction_object_date","group_auction_manager",1,1,1,1 +"access_report_auction_adjudication","report.auction.adjudication","model_report_auction_adjudication","group_auction_manager",1,1,1,1 +"access_report_object_encoded","report.object.encoded","model_report_object_encoded","group_auction_manager",1,1,1,1 +"access_aie_category","aie.category","model_aie_category","group_auction_manager",1,1,1,1 "access_auction_dates_system","auction.dates system","model_auction_dates","base.group_system",1,0,0,0 "access_auction_lots_system","auction.lots system","model_auction_lots","base.group_system",1,0,0,0 "access_auction_deposit_system","auction.deposit system","model_auction_deposit","base.group_system",1,0,0,0 @@ -22,3 +27,15 @@ "access_auction_lot_history_system","auction.lot.history system","model_auction_lot_history","base.group_system",1,0,0,0 "access_auction_deposit_cost_system","auction.deposit.cost system","model_auction_deposit_cost","base.group_system",1,0,0,0 "access_auction_bid_line_system","auction.bid.line system","model_auction_bid_line","base.group_system",1,0,0,0 +"access_auction_account_tax","account.tax manager","account.model_account_tax","group_auction_manager",1,1,1,0 +"access_auction_account_fiscalyear","account.fiscalyear manager","account.model_account_fiscalyear","group_auction_manager",1,1,1,0 +"access_auction_account_journal","account.journal manager","account.model_account_journal","group_auction_manager",1,1,1,0 +"access_auction_account_invoice","account.invoice manager","account.model_account_invoice","group_auction_manager",1,1,1,0 +"access_auction_account_invoice_line","account.invoice.line manager","account.model_account_invoice_line","group_auction_manager",1,1,1,0 +"access_auction_account_invoice_tax","account.invoice.tax manager","account.model_account_invoice_tax","group_auction_manager",1,1,1,0 +"access_auction_account_analytic_journal","account.analytic.journal manager","account.model_account_analytic_journal","group_auction_manager",1,1,1,0 +"access_auction_account_period","account.period manager","account.model_account_period","group_auction_manager",1,1,1,0 +"access_auction_account_move","account.move manager","account.model_account_move","group_auction_manager",1,1,1,0 +"access_auction_account_move_line","account.move.line manager","account.model_account_move_line","group_auction_manager",1,1,1,0 +"access_auction_account_journal_period","account.journal.period manager","account.model_account_journal_period","group_auction_manager",1,1,1,0 +"access_auction_account_analytic_line","account.analytic.line manager","account.model_account_analytic_line","group_auction_manager",1,1,1,1 diff --git a/addons/crm/report/crm_phonecall_report.py b/addons/crm/report/crm_phonecall_report.py index 0e4fb4a7df5..80d973ee0e8 100644 --- a/addons/crm/report/crm_phonecall_report.py +++ b/addons/crm/report/crm_phonecall_report.py @@ -47,7 +47,6 @@ class crm_phonecall_report(osv.osv): @param context: A standard dictionary for contextual values """ res = {} - state_perc = 0.0 avg_ans = 0.0 for case in self.browse(cr, uid, ids, context): diff --git a/addons/crm/wizard/crm_lead_to_opportunity.py b/addons/crm/wizard/crm_lead_to_opportunity.py index 7046034afaf..8c5e13db4c1 100644 --- a/addons/crm/wizard/crm_lead_to_opportunity.py +++ b/addons/crm/wizard/crm_lead_to_opportunity.py @@ -207,7 +207,6 @@ class crm_lead2opportunity_partner(osv.osv_memory): context = {} partner_ids = self._create_partner(cr, uid, ids, context) - mod_obj = self.pool.get('ir.model.data') value = {} data_obj = self.pool.get('ir.model.data') data_id = data_obj._get_id(cr, uid, 'crm', 'view_crm_lead2opportunity_action') diff --git a/addons/mrp/i18n/ar.po b/addons/mrp/i18n/ar.po index f2b3d711f2e..3c0a5730203 100644 --- a/addons/mrp/i18n/ar.po +++ b/addons/mrp/i18n/ar.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/bg.po b/addons/mrp/i18n/bg.po index 44e7b102d18..a1bd0ba39d7 100644 --- a/addons/mrp/i18n/bg.po +++ b/addons/mrp/i18n/bg.po @@ -565,7 +565,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/bs.po b/addons/mrp/i18n/bs.po index 4d3fd7169e9..6114a513680 100644 --- a/addons/mrp/i18n/bs.po +++ b/addons/mrp/i18n/bs.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/ca.po b/addons/mrp/i18n/ca.po index 6a674f9d1c3..ed1ee7ba401 100644 --- a/addons/mrp/i18n/ca.po +++ b/addons/mrp/i18n/ca.po @@ -584,7 +584,7 @@ msgid "Time in hours for doing one cycle." msgstr "Temps en hores per realitzar un cicle." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Data final" diff --git a/addons/mrp/i18n/cs.po b/addons/mrp/i18n/cs.po index cf9c4b7dbc1..012d1c2eae0 100644 --- a/addons/mrp/i18n/cs.po +++ b/addons/mrp/i18n/cs.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/de.po b/addons/mrp/i18n/de.po index e6a45d18a49..2e84ba9f1e2 100644 --- a/addons/mrp/i18n/de.po +++ b/addons/mrp/i18n/de.po @@ -585,7 +585,7 @@ msgid "Time in hours for doing one cycle." msgstr "Zeit in Stunden für einen (Auftrags-) Zyklus" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Endedatum" diff --git a/addons/mrp/i18n/el.po b/addons/mrp/i18n/el.po index fc5cb55363f..6904be353b3 100644 --- a/addons/mrp/i18n/el.po +++ b/addons/mrp/i18n/el.po @@ -585,7 +585,7 @@ msgid "Time in hours for doing one cycle." msgstr "Χρόνος ενός κύκλου σε ώρες" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Ημερ/νία Τέλους" diff --git a/addons/mrp/i18n/es.po b/addons/mrp/i18n/es.po index 9212132769a..d2568c453cf 100644 --- a/addons/mrp/i18n/es.po +++ b/addons/mrp/i18n/es.po @@ -585,7 +585,7 @@ msgid "Time in hours for doing one cycle." msgstr "Tiempo en horas para realizar un ciclo." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Fecha final" diff --git a/addons/mrp/i18n/es_AR.po b/addons/mrp/i18n/es_AR.po index c1c0ee7e6b9..6146c57db3d 100644 --- a/addons/mrp/i18n/es_AR.po +++ b/addons/mrp/i18n/es_AR.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/es_EC.po b/addons/mrp/i18n/es_EC.po index d86a3f54173..ff994127269 100644 --- a/addons/mrp/i18n/es_EC.po +++ b/addons/mrp/i18n/es_EC.po @@ -585,7 +585,7 @@ msgid "Time in hours for doing one cycle." msgstr "Tiempo en horas para realizar un ciclo." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Fecha final" diff --git a/addons/mrp/i18n/et.po b/addons/mrp/i18n/et.po index 434a4622aa5..1e78dd6168b 100644 --- a/addons/mrp/i18n/et.po +++ b/addons/mrp/i18n/et.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "Aeg tundides mis kulub ühes tsükklis." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Lõppkuupäev" diff --git a/addons/mrp/i18n/fi.po b/addons/mrp/i18n/fi.po index 8610bec1dea..1d33d2dedff 100644 --- a/addons/mrp/i18n/fi.po +++ b/addons/mrp/i18n/fi.po @@ -580,7 +580,7 @@ msgid "Time in hours for doing one cycle." msgstr "Yhden kierron kesto tunneissa." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Lopetuspäivämäärä" diff --git a/addons/mrp/i18n/fr.po b/addons/mrp/i18n/fr.po index 51287167558..a39551a404d 100644 --- a/addons/mrp/i18n/fr.po +++ b/addons/mrp/i18n/fr.po @@ -600,7 +600,7 @@ msgid "Time in hours for doing one cycle." msgstr "Temps nécessaire à la réalisation d'un cycle" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Date de fin" diff --git a/addons/mrp/i18n/hi.po b/addons/mrp/i18n/hi.po index 96be03f1000..d8352b7d12d 100644 --- a/addons/mrp/i18n/hi.po +++ b/addons/mrp/i18n/hi.po @@ -562,7 +562,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "समाप्ति तिथि" diff --git a/addons/mrp/i18n/hr.po b/addons/mrp/i18n/hr.po index 652303d8bb4..17504495bf8 100644 --- a/addons/mrp/i18n/hr.po +++ b/addons/mrp/i18n/hr.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/hu.po b/addons/mrp/i18n/hu.po index 10d9b0da8ba..fb78fa66ed3 100644 --- a/addons/mrp/i18n/hu.po +++ b/addons/mrp/i18n/hu.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/id.po b/addons/mrp/i18n/id.po index c91d0f8438e..23308aeca00 100644 --- a/addons/mrp/i18n/id.po +++ b/addons/mrp/i18n/id.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/it.po b/addons/mrp/i18n/it.po index c001e0a2d6e..148820c77f9 100644 --- a/addons/mrp/i18n/it.po +++ b/addons/mrp/i18n/it.po @@ -586,7 +586,7 @@ msgid "Time in hours for doing one cycle." msgstr "Tempo in ore per completare un ciclo." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Data di fine" diff --git a/addons/mrp/i18n/ko.po b/addons/mrp/i18n/ko.po index 1068e604527..8df359442fb 100644 --- a/addons/mrp/i18n/ko.po +++ b/addons/mrp/i18n/ko.po @@ -567,7 +567,7 @@ msgid "Time in hours for doing one cycle." msgstr "한 사이클을 수행하는 시간" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "마감 날짜" diff --git a/addons/mrp/i18n/lt.po b/addons/mrp/i18n/lt.po index 677f640b861..faae3ef23ce 100644 --- a/addons/mrp/i18n/lt.po +++ b/addons/mrp/i18n/lt.po @@ -575,7 +575,7 @@ msgid "Time in hours for doing one cycle." msgstr "Vieno ciklo laikas valandomis." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Pabaigos data" diff --git a/addons/mrp/i18n/mrp.pot b/addons/mrp/i18n/mrp.pot index d576151f247..913acfe3f9f 100644 --- a/addons/mrp/i18n/mrp.pot +++ b/addons/mrp/i18n/mrp.pot @@ -546,7 +546,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/nl.po b/addons/mrp/i18n/nl.po index 97c4f6ee79c..4faad6c115e 100644 --- a/addons/mrp/i18n/nl.po +++ b/addons/mrp/i18n/nl.po @@ -584,7 +584,7 @@ msgid "Time in hours for doing one cycle." msgstr "Tijd in uren voor één productiecyclus." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Einddatum" diff --git a/addons/mrp/i18n/nl_BE.po b/addons/mrp/i18n/nl_BE.po index a6bea998b5f..a4df723195a 100644 --- a/addons/mrp/i18n/nl_BE.po +++ b/addons/mrp/i18n/nl_BE.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/pl.po b/addons/mrp/i18n/pl.po index d65d0617e75..37985293f94 100644 --- a/addons/mrp/i18n/pl.po +++ b/addons/mrp/i18n/pl.po @@ -582,7 +582,7 @@ msgid "Time in hours for doing one cycle." msgstr "Czas wykonania jednego cyklu w godzinach" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Data końcowa" diff --git a/addons/mrp/i18n/pt.po b/addons/mrp/i18n/pt.po index 71ea973805e..39c9c359335 100644 --- a/addons/mrp/i18n/pt.po +++ b/addons/mrp/i18n/pt.po @@ -564,7 +564,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Data de finalização" diff --git a/addons/mrp/i18n/pt_BR.po b/addons/mrp/i18n/pt_BR.po index b348ca0faee..ba0de24330e 100644 --- a/addons/mrp/i18n/pt_BR.po +++ b/addons/mrp/i18n/pt_BR.po @@ -567,7 +567,7 @@ msgid "Time in hours for doing one cycle." msgstr "Tempo em hora para fazer um ciclo." #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Data final" diff --git a/addons/mrp/i18n/ro.po b/addons/mrp/i18n/ro.po index 11f24dae6c9..346792757ce 100644 --- a/addons/mrp/i18n/ro.po +++ b/addons/mrp/i18n/ro.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/ru.po b/addons/mrp/i18n/ru.po index 3f227b676ac..b0a01bfe8f2 100644 --- a/addons/mrp/i18n/ru.po +++ b/addons/mrp/i18n/ru.po @@ -567,7 +567,7 @@ msgid "Time in hours for doing one cycle." msgstr "Время в часах на выполнение одного цикла" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Дата окончания" diff --git a/addons/mrp/i18n/sk.po b/addons/mrp/i18n/sk.po index e9bdba85b42..5cad0bfc519 100644 --- a/addons/mrp/i18n/sk.po +++ b/addons/mrp/i18n/sk.po @@ -562,7 +562,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/sl.po b/addons/mrp/i18n/sl.po index 1c314829f6a..16c4b4c8067 100644 --- a/addons/mrp/i18n/sl.po +++ b/addons/mrp/i18n/sl.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Končni datum" diff --git a/addons/mrp/i18n/sq.po b/addons/mrp/i18n/sq.po index ba8543fe2f7..bbd4051e28a 100644 --- a/addons/mrp/i18n/sq.po +++ b/addons/mrp/i18n/sq.po @@ -562,7 +562,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/sv.po b/addons/mrp/i18n/sv.po index d3865dd7691..c086b7f24f1 100644 --- a/addons/mrp/i18n/sv.po +++ b/addons/mrp/i18n/sv.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Slutdatum" diff --git a/addons/mrp/i18n/tlh.po b/addons/mrp/i18n/tlh.po index 81ba3486333..5ac8e02d5aa 100644 --- a/addons/mrp/i18n/tlh.po +++ b/addons/mrp/i18n/tlh.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/tr.po b/addons/mrp/i18n/tr.po index be3a69b6415..ee6b7017c3b 100644 --- a/addons/mrp/i18n/tr.po +++ b/addons/mrp/i18n/tr.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Bitiş Tarihi" diff --git a/addons/mrp/i18n/uk.po b/addons/mrp/i18n/uk.po index a5824ca6d96..fcbd14cb9e7 100644 --- a/addons/mrp/i18n/uk.po +++ b/addons/mrp/i18n/uk.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "Кінцева дата" diff --git a/addons/mrp/i18n/vi.po b/addons/mrp/i18n/vi.po index 516438d2dfc..6c620e01062 100644 --- a/addons/mrp/i18n/vi.po +++ b/addons/mrp/i18n/vi.po @@ -562,7 +562,7 @@ msgid "Time in hours for doing one cycle." msgstr "" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/zh_CN.po b/addons/mrp/i18n/zh_CN.po index b4b04af2f15..1fb75aececc 100644 --- a/addons/mrp/i18n/zh_CN.po +++ b/addons/mrp/i18n/zh_CN.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "一个周期的工作小时数" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "结束日期" diff --git a/addons/mrp/i18n/zh_HK.po b/addons/mrp/i18n/zh_HK.po index 88ec10de504..43c27d45606 100644 --- a/addons/mrp/i18n/zh_HK.po +++ b/addons/mrp/i18n/zh_HK.po @@ -562,7 +562,7 @@ msgid "Time in hours for doing one cycle." msgstr "一個循環所須的小時數" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/i18n/zh_TW.po b/addons/mrp/i18n/zh_TW.po index b0be94ac800..08120747e9a 100644 --- a/addons/mrp/i18n/zh_TW.po +++ b/addons/mrp/i18n/zh_TW.po @@ -561,7 +561,7 @@ msgid "Time in hours for doing one cycle." msgstr "一個循環所須的小時數" #. module: mrp -#: field:mrp.production,date_finnished:0 +#: field:mrp.production,date_finished:0 msgid "End Date" msgstr "" diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 1a71114c336..eea2e4a5224 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -456,7 +456,7 @@ class mrp_production(osv.osv): 'date_planned_date': fields.function(_production_date, method=True, type='date', string='Scheduled Date'), 'date_planned': fields.datetime('Scheduled date', required=True, select=1), 'date_start': fields.datetime('Start Date'), - 'date_finnished': fields.datetime('End Date'), + 'date_finished': fields.datetime('End Date'), 'bom_id': fields.many2one('mrp.bom', 'Bill of Material', domain=[('bom_id','=',False)]), 'routing_id': fields.many2one('mrp.routing', string='Routing', on_delete='set null', help="The list of operations (list of workcenters) to produce the finished product. The routing is mainly used to compute workcenter costs during operations and to plan future loads on workcenters based on production plannification."), @@ -658,7 +658,7 @@ class mrp_production(osv.osv): """ for production in self.browse(cr, uid, ids): self._costs_generate(cr, uid, production) - return self.write(cr, uid, ids, {'state': 'done', 'date_finnished': time.strftime('%Y-%m-%d %H:%M:%S')}) + return self.write(cr, uid, ids, {'state': 'done', 'date_finished': time.strftime('%Y-%m-%d %H:%M:%S')}) def test_production_done(self, cr, uid, ids): """ Tests whether production is done or not. diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 39ecec5ad95..6fda888190c 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -545,7 +545,7 @@ mrp.production gantt - + @@ -604,8 +604,8 @@ - - + + - - + + @@ -658,8 +658,8 @@ - - + + - - + + - + diff --git a/addons/mrp/report/mrp_production_order.py b/addons/mrp/report/mrp_production_order.py index 9aeae1781cd..3ad4184c413 100644 --- a/addons/mrp/report/mrp_production_order.py +++ b/addons/mrp/report/mrp_production_order.py @@ -51,7 +51,7 @@ class mrp_production_order(osv.osv): 'date_planned':fields.date('Scheduled Date'), 'location_src_id': fields.many2one('stock.location', 'Raw Materials Location', readonly=True), 'date_start': fields.datetime('Start Date',readonly=True), - 'date_finnished': fields.datetime('End Date',readonly=True), + 'date_finished': fields.datetime('End Date',readonly=True), 'location_dest_id': fields.many2one('stock.location', 'Finished Products Location', readonly=True), 'company_id': fields.many2one('res.company','Company',readonly=True), 'bom_id': fields.many2one('mrp.bom', 'Bill of Material',readonly=True), @@ -100,7 +100,7 @@ class mrp_production_order(osv.osv): s.routing_id, s.picking_id, s.date_start, - s.date_finnished, + s.date_finished, to_date(to_char(s.date_planned, 'dd-MM-YYYY'),'dd-MM-YYYY') as date_planned, s.origin, s.priority, @@ -128,7 +128,7 @@ class mrp_production_order(osv.osv): to_date(to_char(s.date_planned, 'dd-MM-YYYY'),'dd-MM-YYYY'), s.origin, s.date_start, - s.date_finnished, + s.date_finished, s.company_id )""") mrp_production_order() diff --git a/addons/mrp/report/mrp_production_order_view.xml b/addons/mrp/report/mrp_production_order_view.xml index ea1f15bc3ea..6f88981fd5f 100644 --- a/addons/mrp/report/mrp_production_order_view.xml +++ b/addons/mrp/report/mrp_production_order_view.xml @@ -58,7 +58,7 @@ @@ -80,7 +80,7 @@ - + diff --git a/addons/mrp/report/mrp_report_view.xml b/addons/mrp/report/mrp_report_view.xml index 1bf82338cdd..dcb2bcb3566 100644 --- a/addons/mrp/report/mrp_report_view.xml +++ b/addons/mrp/report/mrp_report_view.xml @@ -101,7 +101,8 @@ graph,tree Weekly Stock Value Variation enables you to track stock value evolution as a result of manufacturing activities (consumption of raw materials, production of finished goods, added accounting value of stock by the creation of value following the transformation of products). - + diff --git a/addons/mrp/security/ir.model.access.csv b/addons/mrp/security/ir.model.access.csv index 79c5de9a505..e63ced14997 100644 --- a/addons/mrp/security/ir.model.access.csv +++ b/addons/mrp/security/ir.model.access.csv @@ -5,12 +5,14 @@ "access_mrp_bom","mrp.bom","model_mrp_bom","group_mrp_user",1,1,1,0 "access_mrp_bom_revision","mrp.bom.revision","model_mrp_bom_revision","group_mrp_user",1,0,0,0 "access_mrp_production","mrp.production user","model_mrp_production","mrp.group_mrp_user",1,1,1,1 +"access_mrp_property_group","mrp.property.group","procurement.model_mrp_property_group","mrp.group_mrp_manager",1,1,1,1 +"access_mrp_property","mrp.property","procurement.model_mrp_property","mrp.group_mrp_manager",1,1,1,1 "access_mrp_production_product_line","mrp.production.product.line","model_mrp_production_product_line","mrp.group_mrp_user",1,1,1,1 "access_procurement","procurement.order","model_procurement_order","mrp.group_mrp_user",1,1,1,1 -"access_mrp_workcenter_manager","mrp.workcenter.manager","model_mrp_workcenter","mrp.group_mrp_manager",1,1,1,1 +"access_mrp_workcenter_manager","mrp.workcenter.manager","model_mrp_workcenter","mrp.group_mrp_manager",1,0,0,0 "access_mrp_routing_manager","mrp.routing.manager","model_mrp_routing","mrp.group_mrp_manager",1,1,1,1 "access_mrp_routing_workcenter_manager","mrp.routing.workcenter.manager","model_mrp_routing_workcenter","mrp.group_mrp_manager",1,1,1,1 -"access_mrp_bom_manager","mrp.bom.manager","model_mrp_bom","mrp.group_mrp_manager",1,0,0,0 +"access_mrp_bom_manager","mrp.bom.manager","model_mrp_bom","mrp.group_mrp_manager",1,0,0,1 "access_mrp_bom_revision_manager","mrp.bom.revision.manager","model_mrp_bom_revision","mrp.group_mrp_manager",1,1,1,1 "access_stock_location_mrp_worker","stock.location mrp_worker","stock.model_stock_location","mrp.group_mrp_user",1,0,0,0 "access_stock_move_mrp_worker","stock.move mrp_worker","stock.model_stock_move","mrp.group_mrp_user",1,1,1,0 @@ -20,14 +22,15 @@ "access_account_account","account.account mrp_worker","account.model_account_account","mrp.group_mrp_user",1,0,0,0 "access_purchase_order_mrp_worker","purchase.order mrp_worker","purchase.model_purchase_order","mrp.group_mrp_user",1,1,1,1 "access_purchase_order_line_mrp_worker","purchase.order.line mrp_worker","purchase.model_purchase_order_line","mrp.group_mrp_user",1,0,0,0 -"access_hr_timesheet_group_mrp_worker","resource.calendar mrp_worker","resource.model_resource_calendar","base.group_system",1,1,1,1 +"access_hr_timesheet_group_mrp_worker","resource.calendar mrp_manager","resource.model_resource_calendar","mrp.group_mrp_manager",1,1,1,1 "access_procurement_stock_worker","procurement.order stock_worker","model_procurement_order","stock.group_stock_user",1,1,1,1 "access_procurement_user","procurement.order.user","model_procurement_order","base.group_user",1,1,1,1 "access_mrp_production_stock_worker","mrp.production stock_worker","model_mrp_production","stock.group_stock_user",1,0,0,0 "access_mrp_production_order","mrp.production.order","model_mrp_production_order","mrp.group_mrp_manager",1,1,1,1 -"access_report_workcenter_load","report.workcenter.load","model_report_workcenter_load","mrp.group_mrp_manager",1,0,0,0 -"access_report_mrp_inout","report.mrp.inout","model_report_mrp_inout","mrp.group_mrp_manager",1,0,0,0 -"access_product_product_manager","product.product manager","model_product_product","mrp.group_mrp_manager",1,1,1,1 +"access_report_workcenter_load","report.workcenter.load","model_report_workcenter_load","mrp.group_mrp_manager",1,1,1,1 +"access_report_mrp_inout","report.mrp.inout","model_report_mrp_inout","mrp.group_mrp_manager",1,1,1,1 +"access_product_product_manager","product.product manager","model_product_product","mrp.group_mrp_manager",1,0,0,0 +"access_ir_property_manager","ir.property manager","base.model_ir_property","mrp.group_mrp_manager",1,1,1,1 "access_account_sequence_fiscalyear","account.sequence.fiscalyear","account.model_account_sequence_fiscalyear","mrp.group_mrp_user",1,1,1,1 "access_product_product_user","product.product user","model_product_product","mrp.group_mrp_user",1,1,1,1 "access_product_template_user","product.template user","product.model_product_template","mrp.group_mrp_user",1,1,1,1 @@ -39,6 +42,7 @@ "access_workcenter_user","mrp.production.workcenter.line.user","model_mrp_production_workcenter_line","mrp.group_mrp_user",1,1,1,1 "access_resource_calendar_leaves_user","mrp.resource.calendar.leaves.user","resource.model_resource_calendar_leaves","mrp.group_mrp_user",1,1,1,1 "access_resource_calendar_leaves_manager","mrp.resource.calendar.leaves.manager","resource.model_resource_calendar_leaves","mrp.group_mrp_manager",1,0,0,0 +"access_resource_calendar_attendance_manager","mrp.resource.calendar.attendance.manager","resource.model_resource_calendar_attendance","mrp.group_mrp_manager",1,1,1,1 "access_product_puom_categ","product.uom.categ","product.model_product_uom_categ","mrp.group_mrp_user",1,1,1,0 "access_resource_resource","resource.resource","resource.model_resource_resource","mrp.group_mrp_user",1,1,1,0 "access_board_board_user","mrp.board.board","board.model_board_board","mrp.group_mrp_user",1,1,1,0 @@ -55,7 +59,7 @@ "access_mrp_production_manager","mrp.production manager","model_mrp_production","mrp.group_mrp_manager",1,0,0,0 "access_procurement_manager","procurement.order","model_procurement_order","mrp.group_mrp_manager",1,0,0,0 "access_workcenter_manager","mrp.production.workcenter.line","model_mrp_production_workcenter_line","mrp.group_mrp_manager",1,0,0,0 -"access_stock_move_mrp_manager","stock.move mrp_manager","stock.model_stock_move","mrp.group_mrp_manager",1,0,0,0 +"access_stock_move_mrp_manager","stock.move mrp_manager","stock.model_stock_move","mrp.group_mrp_manager",1,0,0,1 "access_mrp_production_product_line_manager","mrp.production.product.line manager","model_mrp_production_product_line","mrp.group_mrp_manager",1,0,0,0 "access_account_sequence_fiscalyear_system","account.sequence.fiscalyear.system","account.model_account_sequence_fiscalyear","mrp.group_mrp_manager",1,0,0,0 "access_product_template_system","product.template mgr.system","product.model_product_template","base.group_system",1,0,0,0 @@ -87,6 +91,6 @@ "access_mrp_production_system","mrp.production system","model_mrp_production","base.group_system",1,0,0,0 "access_stock_production_lot_user","stock.production.lot","stock.model_stock_production_lot","mrp.group_mrp_user",1,1,1,1 "access_stock_warehouse_orderpoint_manager","stock.warehouse.orderpoint","procurement.model_stock_warehouse_orderpoint","mrp.group_mrp_manager",1,0,0,0 -"access_stock_picking_mrp_manager","stock.picking mrp_manager","stock.model_stock_picking","mrp.group_mrp_manager",1,1,1,1 +"access_stock_picking_mrp_manager","stock.picking mrp_manager","stock.model_stock_picking","mrp.group_mrp_manager",1,0,0,0 "access_report_mrp_inout_user","report.mrp.inout user","model_report_mrp_inout","mrp.group_mrp_user",1,0,0,0 "access_report_workcenter_load_user","report.workcenter.load.user","model_report_workcenter_load","mrp.group_mrp_user",1,0,0,0 diff --git a/addons/mrp/test/mrp_phantom_bom.yml b/addons/mrp/test/mrp_phantom_bom.yml index 46b1d19244a..08a0bc31c86 100644 --- a/addons/mrp/test/mrp_phantom_bom.yml +++ b/addons/mrp/test/mrp_phantom_bom.yml @@ -230,17 +230,6 @@ wf_service = netsvc.LocalService("workflow") for p_id in purch_ids: wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_confirm', cr) -- - I get the approval from both the suppliers. So I approve my purchase orders. -- - !python {model: purchase.order}: | - from tools.translate import _ - import netsvc - purch_ids = self.search(cr, uid, [('state','=','confirmed')]) - assert purch_ids, _('No Confirmed Purchase Orders found!') - wf_service = netsvc.LocalService("workflow") - for p_id in purch_ids: - wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_approve', cr) - I see two incoming pickings for Orange and Sugar. - diff --git a/addons/mrp/test/mrp_procurement.yml b/addons/mrp/test/mrp_procurement.yml index 7435503bac9..40d22ae817f 100644 --- a/addons/mrp/test/mrp_procurement.yml +++ b/addons/mrp/test/mrp_procurement.yml @@ -178,17 +178,7 @@ wf_service = netsvc.LocalService("workflow") for p_id in purch_ids: wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_confirm', cr) -- - I get the approval from the supplier. So I approve my purchase orders. -- - !python {model: purchase.order}: | - from tools.translate import _ - import netsvc - purch_ids = self.search(cr, uid, [('state','=','confirmed')]) - assert purch_ids, _('No Confirmed Purchase Orders found!') - wf_service = netsvc.LocalService("workflow") - for p_id in purch_ids: - wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_approve', cr) + - I confirm purchase order for Buttons. - @@ -198,17 +188,7 @@ wf_service = netsvc.LocalService("workflow") for p_id in purch_ids: wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_confirm', cr) -- - I get the approval from the supplier. So I approve my purchase orders. -- - !python {model: purchase.order}: | - from tools.translate import _ - import netsvc - purch_ids = self.search(cr, uid, [('state','=','confirmed')]) - assert purch_ids, _('No Confirmed Purchase Orders found!') - wf_service = netsvc.LocalService("workflow") - for p_id in purch_ids: - wf_service.trg_validate(uid, 'purchase.order', p_id, 'purchase_approve', cr) + - I Check incoming shipments for cloth. And receive products. - diff --git a/addons/mrp/wizard/change_production_qty.py b/addons/mrp/wizard/change_production_qty.py index 5f7aa0754e1..f5d62d535c9 100644 --- a/addons/mrp/wizard/change_production_qty.py +++ b/addons/mrp/wizard/change_production_qty.py @@ -87,10 +87,10 @@ class change_production_qty(osv.osv_memory): factor = prod.product_qty * prod.product_uom.factor / bom_point.product_uom.factor res = bom_obj._bom_explode(cr, uid, bom_point, factor / bom_point.product_qty, []) for r in res[0]: - if r['product_id']== move.product_id.id: - move_lines_obj.write(cr, uid,move.id, {'product_qty' : r['product_qty']}) + if r['product_id'] == move.product_id.id: + move_lines_obj.write(cr, uid, [move.id], {'product_qty' : r['product_qty']}) for m in prod.move_created_ids: - move_lines_obj.write(cr, uid,m.id, {'product_qty': wiz_qty.product_qty}) + move_lines_obj.write(cr, uid, [m.id], {'product_qty': wiz_qty.product_qty}) return {} diff --git a/addons/mrp_operations/i18n/ar.po b/addons/mrp_operations/i18n/ar.po index 0546e0d4ce5..ab7c0e86910 100644 --- a/addons/mrp_operations/i18n/ar.po +++ b/addons/mrp_operations/i18n/ar.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/bg.po b/addons/mrp_operations/i18n/bg.po index f67c785f82e..39a5d93bdb5 100644 --- a/addons/mrp_operations/i18n/bg.po +++ b/addons/mrp_operations/i18n/bg.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/bs.po b/addons/mrp_operations/i18n/bs.po index ff9a28f1473..f1f31cefc6b 100644 --- a/addons/mrp_operations/i18n/bs.po +++ b/addons/mrp_operations/i18n/bs.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/ca.po b/addons/mrp_operations/i18n/ca.po index fd8d311dcc4..6567a54a457 100644 --- a/addons/mrp_operations/i18n/ca.po +++ b/addons/mrp_operations/i18n/ca.po @@ -249,7 +249,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/cs.po b/addons/mrp_operations/i18n/cs.po index 0546e0d4ce5..ab7c0e86910 100644 --- a/addons/mrp_operations/i18n/cs.po +++ b/addons/mrp_operations/i18n/cs.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/de.po b/addons/mrp_operations/i18n/de.po index 2c4800228d0..82d75040b9e 100644 --- a/addons/mrp_operations/i18n/de.po +++ b/addons/mrp_operations/i18n/de.po @@ -250,7 +250,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/es.po b/addons/mrp_operations/i18n/es.po index e973ddb2381..2b0bf5b7c50 100644 --- a/addons/mrp_operations/i18n/es.po +++ b/addons/mrp_operations/i18n/es.po @@ -251,7 +251,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/es_AR.po b/addons/mrp_operations/i18n/es_AR.po index d0589260312..3c140fd1541 100644 --- a/addons/mrp_operations/i18n/es_AR.po +++ b/addons/mrp_operations/i18n/es_AR.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/es_EC.po b/addons/mrp_operations/i18n/es_EC.po index b0caeb9a279..730a921b999 100644 --- a/addons/mrp_operations/i18n/es_EC.po +++ b/addons/mrp_operations/i18n/es_EC.po @@ -251,7 +251,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/et.po b/addons/mrp_operations/i18n/et.po index 493f060565b..de913493585 100644 --- a/addons/mrp_operations/i18n/et.po +++ b/addons/mrp_operations/i18n/et.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/fi.po b/addons/mrp_operations/i18n/fi.po index 0f94be1c01a..27936f066f7 100644 --- a/addons/mrp_operations/i18n/fi.po +++ b/addons/mrp_operations/i18n/fi.po @@ -249,7 +249,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/fr.po b/addons/mrp_operations/i18n/fr.po index 4e818c3655a..a5f40616d0a 100644 --- a/addons/mrp_operations/i18n/fr.po +++ b/addons/mrp_operations/i18n/fr.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/hi.po b/addons/mrp_operations/i18n/hi.po index cdd3e5fd4a4..865f2353a13 100644 --- a/addons/mrp_operations/i18n/hi.po +++ b/addons/mrp_operations/i18n/hi.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/hr.po b/addons/mrp_operations/i18n/hr.po index 0546e0d4ce5..ab7c0e86910 100644 --- a/addons/mrp_operations/i18n/hr.po +++ b/addons/mrp_operations/i18n/hr.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/hu.po b/addons/mrp_operations/i18n/hu.po index 0546e0d4ce5..ab7c0e86910 100644 --- a/addons/mrp_operations/i18n/hu.po +++ b/addons/mrp_operations/i18n/hu.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/id.po b/addons/mrp_operations/i18n/id.po index 064aeb7c14b..871abf389d6 100644 --- a/addons/mrp_operations/i18n/id.po +++ b/addons/mrp_operations/i18n/id.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/it.po b/addons/mrp_operations/i18n/it.po index 379639b9d39..9c93f457091 100644 --- a/addons/mrp_operations/i18n/it.po +++ b/addons/mrp_operations/i18n/it.po @@ -249,7 +249,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/ko.po b/addons/mrp_operations/i18n/ko.po index c4c54b0857b..33a70f940fa 100644 --- a/addons/mrp_operations/i18n/ko.po +++ b/addons/mrp_operations/i18n/ko.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/lt.po b/addons/mrp_operations/i18n/lt.po index 0546e0d4ce5..ab7c0e86910 100644 --- a/addons/mrp_operations/i18n/lt.po +++ b/addons/mrp_operations/i18n/lt.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/mrp_operations.pot b/addons/mrp_operations/i18n/mrp_operations.pot index a1f61b1965d..90df737dde5 100644 --- a/addons/mrp_operations/i18n/mrp_operations.pot +++ b/addons/mrp_operations/i18n/mrp_operations.pot @@ -242,7 +242,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/nl.po b/addons/mrp_operations/i18n/nl.po index 1a7674b11cd..7905b9cc363 100644 --- a/addons/mrp_operations/i18n/nl.po +++ b/addons/mrp_operations/i18n/nl.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/nl_BE.po b/addons/mrp_operations/i18n/nl_BE.po index 6d8bb017f25..173b7601ae9 100644 --- a/addons/mrp_operations/i18n/nl_BE.po +++ b/addons/mrp_operations/i18n/nl_BE.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/pl.po b/addons/mrp_operations/i18n/pl.po index 48b6475b9fd..dd4ff7ee02c 100644 --- a/addons/mrp_operations/i18n/pl.po +++ b/addons/mrp_operations/i18n/pl.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/pt.po b/addons/mrp_operations/i18n/pt.po index 96427a43ff0..d874808086b 100644 --- a/addons/mrp_operations/i18n/pt.po +++ b/addons/mrp_operations/i18n/pt.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/pt_BR.po b/addons/mrp_operations/i18n/pt_BR.po index 731aded6cda..981c5624c8b 100644 --- a/addons/mrp_operations/i18n/pt_BR.po +++ b/addons/mrp_operations/i18n/pt_BR.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/ro.po b/addons/mrp_operations/i18n/ro.po index 54db3294f60..2658a2ce74e 100644 --- a/addons/mrp_operations/i18n/ro.po +++ b/addons/mrp_operations/i18n/ro.po @@ -250,7 +250,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/ru.po b/addons/mrp_operations/i18n/ru.po index 333caa9e4f3..69c0d6fb0a5 100644 --- a/addons/mrp_operations/i18n/ru.po +++ b/addons/mrp_operations/i18n/ru.po @@ -248,7 +248,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/sl.po b/addons/mrp_operations/i18n/sl.po index 81ab1c3b66e..0d012e0211e 100644 --- a/addons/mrp_operations/i18n/sl.po +++ b/addons/mrp_operations/i18n/sl.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "mrp_operations.operation" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/sq.po b/addons/mrp_operations/i18n/sq.po index 27c43ff72cf..d61f3069824 100644 --- a/addons/mrp_operations/i18n/sq.po +++ b/addons/mrp_operations/i18n/sq.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/sv.po b/addons/mrp_operations/i18n/sv.po index 945c20d62cb..52e7c2b59e5 100644 --- a/addons/mrp_operations/i18n/sv.po +++ b/addons/mrp_operations/i18n/sv.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/tlh.po b/addons/mrp_operations/i18n/tlh.po index 5d7551ac4b7..5af1d671159 100644 --- a/addons/mrp_operations/i18n/tlh.po +++ b/addons/mrp_operations/i18n/tlh.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/tr.po b/addons/mrp_operations/i18n/tr.po index bbcb1006500..3643a54ae6a 100644 --- a/addons/mrp_operations/i18n/tr.po +++ b/addons/mrp_operations/i18n/tr.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/uk.po b/addons/mrp_operations/i18n/uk.po index 4f55f459921..fadaf9ba531 100644 --- a/addons/mrp_operations/i18n/uk.po +++ b/addons/mrp_operations/i18n/uk.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/vi.po b/addons/mrp_operations/i18n/vi.po index 38bbfea8310..9fcae413139 100644 --- a/addons/mrp_operations/i18n/vi.po +++ b/addons/mrp_operations/i18n/vi.po @@ -247,7 +247,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/zh_CN.po b/addons/mrp_operations/i18n/zh_CN.po index 8ff3bb9f5b2..d7b5635fcc0 100644 --- a/addons/mrp_operations/i18n/zh_CN.po +++ b/addons/mrp_operations/i18n/zh_CN.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "运作" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/i18n/zh_TW.po b/addons/mrp_operations/i18n/zh_TW.po index b49e5f9d85b..a8c0f97102f 100644 --- a/addons/mrp_operations/i18n/zh_TW.po +++ b/addons/mrp_operations/i18n/zh_TW.po @@ -246,7 +246,7 @@ msgid "mrp_operations.operation" msgstr "" #. module: mrp_operations -#: field:mrp.production.workcenter.line,date_finnished:0 +#: field:mrp.production.workcenter.line,date_finished:0 #: field:mrp.production.workcenter.line,date_planned_end:0 #: field:mrp_operations.operation,date_finished:0 msgid "End Date" diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 3328f24a59f..9585a34df36 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -67,7 +67,7 @@ class mrp_production_workcenter_line(osv.osv): @return: Dictionary of values. """ ops = self.browse(cr, uid, ids, context=context) - date_and_hours_by_cal = [(op.date_planned, op.hour, op.workcenter_id.calendar_id.id) for op in ops] + date_and_hours_by_cal = [(op.production_id.date_planned, op.hour, op.workcenter_id.calendar_id.id) for op in ops] intervals = self.pool.get('resource.calendar').interval_get_multi(cr, uid, date_and_hours_by_cal) res = {} @@ -95,7 +95,7 @@ class mrp_production_workcenter_line(osv.osv): 'date_planned': fields.datetime('Scheduled Date'), 'date_planned_end': fields.function(_get_date_end, method=True, string='End Date', type='datetime'), 'date_start': fields.datetime('Start Date'), - 'date_finnished': fields.datetime('End Date'), + 'date_finished': fields.datetime('End Date'), 'delay': fields.float('Working Hours',help="This is lead time between operation start and stop in this workcenter",readonly=True), 'production_state':fields.related('production_id','state', type='selection', @@ -179,7 +179,7 @@ class mrp_production_workcenter_line(osv.osv): delay += (date_finished-date_start).days * 24 delay += (date_finished-date_start).seconds / float(60*60) - self.write(cr, uid, ids, {'state':'done', 'date_finnished': date_now,'delay':delay}) + self.write(cr, uid, ids, {'state':'done', 'date_finished': date_now,'delay':delay}) self.modify_production_order_state(cr,uid,ids,'done') return True @@ -288,7 +288,7 @@ class mrp_production(osv.osv): dt_end = datetime.strptime(wc.date_planned_end, '%Y-%m-%d %H:%M:%S') old = wc.sequence or 0 super(mrp_production, self).write(cr, uid, [po.id], { - 'date_finnished': dt_end + 'date_finished': dt_end }) return dt_end @@ -306,7 +306,7 @@ class mrp_production(osv.osv): if l.state in ('done','cancel','draft'): continue todo += l.move_dest_id_lines - if l.production_id and (l.production_id.date_finnished > dt): + if l.production_id and (l.production_id.date_finished > dt): if l.production_id.state not in ('done','cancel'): for wc in l.production_id.workcenter_lines: i = self.pool.get('resource.calendar').interval_min_get( @@ -335,8 +335,8 @@ class mrp_production(osv.osv): break if l.production_id.state in ('done','cancel'): break - if l.production_id and (l.production_id.date_start < po.date_finnished): - self.write(cr, uid, [l.production_id.id], {'date_start': po.date_finnished}) + if l.production_id and (l.production_id.date_start < po.date_finished): + self.write(cr, uid, [l.production_id.id], {'date_start': po.date_finished}) break @@ -511,7 +511,7 @@ class mrp_operations_operation(osv.osv): if code.start_stop=='done': self.pool.get('mrp.production.workcenter.line').action_done(cr,uid,wc_op_id) wf_service.trg_validate(uid, 'mrp.production.workcenter.line', wc_op_id[0], 'button_done', cr) - self.pool.get('mrp.production').write(cr,uid,vals['production_id'],{'date_finnished':datetime.now().strftime('%Y-%m-%d %H:%M:%S')}) + self.pool.get('mrp.production').write(cr,uid,vals['production_id'],{'date_finished':datetime.now().strftime('%Y-%m-%d %H:%M:%S')}) if code.start_stop=='pause': self.pool.get('mrp.production.workcenter.line').action_pause(cr,uid,wc_op_id) @@ -532,7 +532,7 @@ class mrp_operations_operation(osv.osv): line_vals['delay'] = delay if vals.get('date_start',False): if code.start_stop == 'done': - line_vals['date_finnished'] = vals['date_start'] + line_vals['date_finished'] = vals['date_start'] elif code.start_stop == 'start': line_vals['date_start'] = vals['date_start'] diff --git a/addons/mrp_operations/mrp_operations_view.xml b/addons/mrp_operations/mrp_operations_view.xml index 7a5a5af3dc9..9a93b67a36f 100644 --- a/addons/mrp_operations/mrp_operations_view.xml +++ b/addons/mrp_operations/mrp_operations_view.xml @@ -101,7 +101,7 @@ - + @@ -170,7 +170,7 @@ mrp.production.workcenter.line calendar - + diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py index f7a6837aace..5848fa7057c 100644 --- a/addons/mrp_repair/mrp_repair.py +++ b/addons/mrp_repair/mrp_repair.py @@ -21,7 +21,7 @@ from osv import fields,osv import netsvc -from datetime import datetime, date +from datetime import datetime from dateutil.relativedelta import relativedelta from tools.translate import _ import decimal_precision as dp diff --git a/addons/point_of_sale/pos.py b/addons/point_of_sale/pos.py index 3b5f235251f..a5bdf5ec0f8 100644 --- a/addons/point_of_sale/pos.py +++ b/addons/point_of_sale/pos.py @@ -175,9 +175,8 @@ class pos_order(osv.osv): cur_obj = self.pool.get('res.currency') cur = order.pricelist_id.currency_id for payment in order.statement_ids: - res[order.id]['amount_paid'] += payment.amount - for payment in order.payments: - res[order.id]['amount_return'] += (payment.amount < 0 and payment.amount or 0) + res[order.id]['amount_paid'] += payment.amount + res[order.id]['amount_return'] += (payment.amount < 0 and payment.amount or 0) for line in order.lines: if order.price_type!='tax_excluded': res[order.id]['amount_tax'] = reduce(lambda x, y: x+round(y['amount'], 2), @@ -221,7 +220,6 @@ class pos_order(osv.osv): default = {} default.update({ 'state': 'draft', - 'payments': [], 'partner_id': False, 'invoice_id': False, 'account_move': False, @@ -285,7 +283,6 @@ class pos_order(osv.osv): ('tax_excluded','Tax excluded') ], 'Price method', required=True), 'statement_ids': fields.one2many('account.bank.statement.line','pos_statement_id','Payments',states={'draft': [('readonly', False)]},readonly=True), - 'payments': fields.one2many('pos.payment', 'order_id', 'Order Payments', states={'draft': [('readonly', False)]}, readonly=True), 'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, states={'draft': [('readonly', False)]}, readonly=True), 'partner_id': fields.many2one( 'res.partner', 'Customer', change_default=True, select=1, states={'draft': [('readonly', False)], 'paid': [('readonly', False)]}), 'state': fields.selection([('draft', 'Quotation'), ('payment', 'Payment'), @@ -1046,6 +1043,7 @@ class pos_order_line(osv.osv): tax_amount = 0.0 taxes = [t for t in line.product_id.taxes_id] if line.qty == 0.0: + res[line.id][f] = 0.0 continue computed_taxes = account_tax_obj.compute_all(cr, uid, taxes, line.price_unit, line.qty)['taxes'] for tax in computed_taxes: @@ -1265,55 +1263,6 @@ class pos_order_line(osv.osv): pos_order_line() - -class pos_payment(osv.osv): - _name = 'pos.payment' - _description = 'Pos Payment' - - def _journal_get(self, cr, uid, context=None): - obj = self.pool.get('account.journal') - ids = obj.search(cr, uid, [('type', '=', 'cash')]) - res = obj.read(cr, uid, ids, ['id', 'name'], context) - res = [(r['id'], r['name']) for r in res] - return res - - def _journal_default(self, cr, uid, context=None): - journal_list = self.pool.get('account.journal').search(cr, uid, [('type', '=', 'cash')]) - if journal_list: - return journal_list[0] - else: - return False - - _columns = { - 'name': fields.char('Description', size=64), - 'order_id': fields.many2one('pos.order', 'Order Ref', required=True, ondelete='cascade'), - 'journal_id': fields.many2one('account.journal', "Journal", required=True), - 'payment_id': fields.many2one('account.payment.term','Payment Term', select=True), - 'payment_nb': fields.char('Piece Number', size=32), - 'payment_name': fields.char('Payment Name', size=32), - 'payment_date': fields.date('Payment Date', required=True), - 'amount': fields.float('Amount', required=True), - } - _defaults = { - 'name': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'pos.payment'), - 'journal_id': _journal_default, - 'payment_date': lambda *a: time.strftime('%Y-%m-%d'), - } - - def create(self, cr, user, vals, context=None): - if vals.get('journal_id') and vals.get('amount'): - return super(pos_payment, self).create(cr, user, vals, context) - return False - - def write(self, cr, user, ids, values, context=None): - if 'amount' in values and not values['amount']: - return False - if 'journal_id' in values and not values['journal_id']: - return False - return super(pos_payment, self).write(cr, user, ids, values, context) - -pos_payment() - class product_product(osv.osv): _inherit = 'product.product' _columns = { diff --git a/addons/point_of_sale/pos_report.xml b/addons/point_of_sale/pos_report.xml index b079f6b9177..3e6a265b34e 100644 --- a/addons/point_of_sale/pos_report.xml +++ b/addons/point_of_sale/pos_report.xml @@ -9,7 +9,7 @@ name="pos.invoice" auto="False" multi="True" - rml="account/report/invoice.rml" + rml="account/report/account_print_invoice.rml" /> 3 - - POS Payment - pos.payment - - - POS Payment - pos.payment - Payment/ - 2 - - POS order line pos.order.line diff --git a/addons/point_of_sale/pos_view.xml b/addons/point_of_sale/pos_view.xml index 17420b1ffe9..7453682f566 100644 --- a/addons/point_of_sale/pos_view.xml +++ b/addons/point_of_sale/pos_view.xml @@ -706,7 +706,7 @@ + id="menu_point_config_product" sequence="25" groups="base.group_system,group_pos_manager"/> Products @@ -732,7 +732,7 @@ parent="menu_point_config_product" action="action_product_input" id="products_for_input_operations" - groups="base.group_system"/> + groups="base.group_system,group_pos_manager"/> Products @@ -758,7 +758,7 @@ parent="menu_point_config_product" action="action_product_output" id="products_for_output_operations" - groups="base.group_system"/> + groups="base.group_system,group_pos_manager"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [[ repeatIn(objects,'o') ]] - [[ setLang(o.user_id.context_lang) ]] - [[o.user_id.company_id.name]] - [[ address and address.street ]], [[ address and address.zip ]] [[ address and address.city ]] - Tel : [[ address and address.phone ]] - Fax : [[ address and address.fax ]] - E-mail : [[ address and address.email ]] - - - - - - - Operation N° : [[ o.name ]] - Date : [[ o.date_order ]] - - - - - - - Description - - - Qty - - - Price - - - - - [[ repeatIn(o.lines,'line') ]] - - - - [[ len(line.product_id.name) > 39 and line.product_id.name[:39] + '...' or line.product_id.name ]] - - - [[ '%.f' % line.qty ]] - - - [[ '%.2f' % net(line.id) ]] - - - - - - - - - - - Discount : - - - [[ not(disc(o.id)) and removeParentNode('blockTable') or disc(o.id) ]] [[ o.pricelist_id.currency_id.name ]] - - - - - - - Total : - - - [[ '%.2f' % o.amount_total ]] [[ o.pricelist_id.currency_id.name ]] - - - - - - - [[ repeatIn(o.payments,'d') ]] - [[ d.name ]]: - - - [[ d.amount ]] - - - - - - - - - - - - - - - - - - diff --git a/addons/point_of_sale/report/report_cash_register_view.xml b/addons/point_of_sale/report/report_cash_register_view.xml index fb498336fb5..df0dfc877de 100644 --- a/addons/point_of_sale/report/report_cash_register_view.xml +++ b/addons/point_of_sale/report/report_cash_register_view.xml @@ -36,7 +36,7 @@ Point of Sale / User + + + Registers + + + [('user_id','!=',['base.user_root'])] + diff --git a/addons/point_of_sale/wizard/pos_return.py b/addons/point_of_sale/wizard/pos_return.py index 4b975b820cb..96187d78ce2 100644 --- a/addons/point_of_sale/wizard/pos_return.py +++ b/addons/point_of_sale/wizard/pos_return.py @@ -123,7 +123,7 @@ class pos_return(osv.osv_memory): + string="Return with Exchange" type="object"/> """ @@ -209,7 +209,8 @@ class pos_return(osv.osv_memory): 'date': date_cur, 'date_planned': date_cur }) - line_obj.copy(cr, uid, line.id, {'qty': -qty, 'order_id': new_order}) + if qty != 0.0: + line_obj.copy(cr, uid, line.id, {'qty': -qty, 'order_id': new_order}) statementl_obj.create(cr, uid, { 'name': 'Refund %s'%order_id.name, 'statement_id': order_id.statement_ids[0].statement_id.id, diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index e1b9b5af40b..3842ac5ebd3 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -439,7 +439,7 @@ class procurement_order(osv.osv): wf_service.trg_trigger(uid, 'procurement.order', id, cr) return True - def action_check_finnished(self, cr, uid, ids): + def action_check_finished(self, cr, uid, ids): return self.check_move_done(cr, uid, ids) def action_check(self, cr, uid, ids): @@ -492,9 +492,9 @@ procurement_order() class StockPicking(osv.osv): _inherit = 'stock.picking' - def test_finnished(self, cursor, user, ids): + def test_finished(self, cursor, user, ids): wf_service = netsvc.LocalService("workflow") - res = super(StockPicking, self).test_finnished(cursor, user, ids) + res = super(StockPicking, self).test_finished(cursor, user, ids) for picking in self.browse(cursor, user, ids): for move in picking.move_lines: if move.state == 'done' and move.procurements: diff --git a/addons/procurement/procurement_workflow.xml b/addons/procurement/procurement_workflow.xml index ff4325e248f..b4bcd1e1f04 100644 --- a/addons/procurement/procurement_workflow.xml +++ b/addons/procurement/procurement_workflow.xml @@ -187,7 +187,7 @@ - action_check_finnished() + action_check_finished() stock.move [move_id.id] diff --git a/addons/purchase/purchase_unit_test.xml b/addons/purchase/purchase_unit_test.xml index 0c6de9312c2..93c0e42fae2 100644 --- a/addons/purchase/purchase_unit_test.xml +++ b/addons/purchase/purchase_unit_test.xml @@ -35,12 +35,6 @@ - - confirmed - - - - approved diff --git a/addons/purchase/test/procurement_buy.yml b/addons/purchase/test/procurement_buy.yml index 4f28ccfafcf..2afd6c2fb62 100644 --- a/addons/purchase/test/procurement_buy.yml +++ b/addons/purchase/test/procurement_buy.yml @@ -76,7 +76,6 @@ import netsvc wf_service = netsvc.LocalService("workflow") wf_service.trg_validate(uid, 'purchase.order',proc_ids.purchase_id.id,'purchase_confirm', cr) - wf_service.trg_validate(uid, 'purchase.order',proc_ids.purchase_id.id,'purchase_approve', cr) - I receive the order of the supplier ASUStek from the Incoming Shipments menu. - diff --git a/addons/purchase/test/purchase_from_manual.yml b/addons/purchase/test/purchase_from_manual.yml index e7a608b7557..0c406635b85 100644 --- a/addons/purchase/test/purchase_from_manual.yml +++ b/addons/purchase/test/purchase_from_manual.yml @@ -56,7 +56,7 @@ I check that the order which was initially in the draft state has transit to confirm state. - !assert {model: purchase.order, id: purchase_order_po1}: - - state == 'confirmed' + - state == 'approved' - I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line - @@ -101,10 +101,6 @@ account_obj = self.pool.get('account.invoice') ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)]) assert ids, _('Pending Invoice is not created!') -- - Supplier approve the purchase order. -- - !workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po1} - I check that the order which was initially in the confirmed state has transit to approved state. - diff --git a/addons/purchase/test/purchase_from_order.yml b/addons/purchase/test/purchase_from_order.yml index a13c687c4a5..8c14611661c 100644 --- a/addons/purchase/test/purchase_from_order.yml +++ b/addons/purchase/test/purchase_from_order.yml @@ -56,7 +56,7 @@ I check that the order which was initially in the draft state has transit to confirm state. - !assert {model: purchase.order, id: purchase_order_po0}: - - state == 'confirmed' + - state == 'approved' - I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line. - @@ -101,10 +101,6 @@ account_obj = self.pool.get('account.invoice') ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)]) assert ids, _('Pending Invoice is not created!') -- - Supplier approve the purchase order. -- - !workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po0} - I check that the order which was initially in the confirmed state has transit to approved state. - diff --git a/addons/purchase/test/purchase_from_picking.yml b/addons/purchase/test/purchase_from_picking.yml index 6250772a872..d0c1cbcb527 100644 --- a/addons/purchase/test/purchase_from_picking.yml +++ b/addons/purchase/test/purchase_from_picking.yml @@ -56,7 +56,7 @@ I check that the order which was initially in the draft state has transit to confirm state. - !assert {model: purchase.order, id: purchase_order_po2}: - - state == 'confirmed' + - state == 'approved' - I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line. - @@ -101,10 +101,6 @@ account_obj = self.pool.get('account.invoice') ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)]) assert ids, _('Pending Invoice is not created!') -- - Supplier approve the purchase order. -- - !workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po2} - I check that the order which was initially in the confirmed state has transit to approved state. - diff --git a/addons/sale/process/sale_process.xml b/addons/sale/process/sale_process.xml index 2c61e55c4e4..3351c265e3d 100644 --- a/addons/sale/process/sale_process.xml +++ b/addons/sale/process/sale_process.xml @@ -251,7 +251,7 @@ - + diff --git a/addons/sale_crm/wizard/crm_make_sale.py b/addons/sale_crm/wizard/crm_make_sale.py index 057e8469431..597def2c6aa 100644 --- a/addons/sale_crm/wizard/crm_make_sale.py +++ b/addons/sale_crm/wizard/crm_make_sale.py @@ -21,7 +21,6 @@ from osv import fields, osv from tools.translate import _ -import decimal_precision as dp import time diff --git a/addons/stock/stock.py b/addons/stock/stock.py index ae0f712f6b5..966564afb78 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -767,7 +767,7 @@ class stock_picking(osv.osv): self.log_picking(cr, uid, ids, context=context) return True - def test_finnished(self, cr, uid, ids): + def test_finished(self, cr, uid, ids): """ Tests whether the move is in done or cancel state or not. @return: True or False """ diff --git a/addons/stock/stock_workflow.xml b/addons/stock/stock_workflow.xml index 3254f7b6984..2a682833a1c 100644 --- a/addons/stock/stock_workflow.xml +++ b/addons/stock/stock_workflow.xml @@ -86,12 +86,12 @@ - test_finnished() + test_finished() - not test_finnished() + not test_finished()