Merge lp:~unifield-team/unifield-server/us-2085 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4137
Proposed branch: lp:~unifield-team/unifield-server/us-2085
Merge into: lp:unifield-server
Diff against target: 48 lines (+10/-3)
2 files modified
bin/addons/sale_override/sale.py (+2/-2)
bin/addons/sale_override/sale_view.xml (+8/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-2085
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+314801@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/sale_override/sale.py'
--- bin/addons/sale_override/sale.py 2016-11-09 09:07:38 +0000
+++ bin/addons/sale_override/sale.py 2017-01-16 10:06:14 +0000
@@ -885,7 +885,7 @@
885 fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been paid."),885 fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been paid."),
886 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'),886 'invoiced_rate': fields.function(_invoiced_rate, method=True, string='Invoiced', type='float'),
887 'noinvoice': fields.function(_get_noinvoice, method=True, string="Don't create an invoice", type='boolean'),887 'noinvoice': fields.function(_get_noinvoice, method=True, string="Don't create an invoice", type='boolean'),
888 'loan_duration': fields.integer(string='Loan duration', help='Loan duration in months', readonly=True, states={'draft': [('readonly', False)], 'validated': [('readonly', False)]}),888 'loan_duration': fields.integer(string='Loan duration', help='Loan duration in months', readonly=False),
889 'from_yml_test': fields.boolean('Only used to pass addons unit test', readonly=True, help='Never set this field to true !'),889 'from_yml_test': fields.boolean('Only used to pass addons unit test', readonly=True, help='Never set this field to true !'),
890 'yml_module_name': fields.char(size=1024, string='Name of the module which created the object in the yml tests', readonly=True),890 'yml_module_name': fields.char(size=1024, string='Name of the module which created the object in the yml tests', readonly=True),
891 'company_id2': fields.many2one('res.company', 'Company', select=1),891 'company_id2': fields.many2one('res.company', 'Company', select=1),
@@ -2939,7 +2939,7 @@
2939 self.infolog(cr, uid, "The line id:%s (line number: %s) of the %s id:%s (%s) has been deleted." % ltl)2939 self.infolog(cr, uid, "The line id:%s (line number: %s) of the %s id:%s (%s) has been deleted." % ltl)
29402940
2941 if lines_to_check:2941 if lines_to_check:
2942 self.check_confirm_order(cr, uid, lines_to_check, run_scheduler=False, context=context, update_lines=False)2942 self.check_confirm_order(cr, uid, lines_to_check, run_scheduler=True, context=context, update_lines=False)
29432943
2944 return res2944 return res
29452945
29462946
=== modified file 'bin/addons/sale_override/sale_view.xml'
--- bin/addons/sale_override/sale_view.xml 2016-03-24 08:35:00 +0000
+++ bin/addons/sale_override/sale_view.xml 2017-01-16 10:06:14 +0000
@@ -69,7 +69,7 @@
69 <field name="categ" on_change="onchange_categ(categ)" />69 <field name="categ" on_change="onchange_categ(categ)" />
70 <group colspan="2" col="2">70 <group colspan="2" col="2">
71 <field name="fo_to_resource" invisible="1" />71 <field name="fo_to_resource" invisible="1" />
72 <field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')]}" />72 <field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')], 'readonly': ['|', ('state', 'not in', ['draft', 'validated']), ('order_type', '!=', 'loan')]}" />
73 <field name="parent_order_name" readonly="True" attrs="{'invisible': [('fo_to_resource', '=', False)]}" />73 <field name="parent_order_name" readonly="True" attrs="{'invisible': [('fo_to_resource', '=', False)]}" />
74 </group>74 </group>
75 <field name="details" />75 <field name="details" />
@@ -409,6 +409,13 @@
409 string="Save and Close"409 string="Save and Close"
410 type="object" 410 type="object"
411 icon="gtk-close" />411 icon="gtk-close" />
412 <button
413 name="ask_unlink"
414 type="object"
415 string="Delete"
416 icon="gtk-cancel"
417 invisible="True"
418 confirm="This button shouldn't be use from form view. Please use the red cross on list view." />
412 </form>419 </form>
413 </field>420 </field>
414 </record>421 </record>

Subscribers

People subscribed via source and target branches

to all changes: