添加功能
This commit is contained in:
@@ -48,14 +48,11 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
<field name="self_users_ids" invisible="1"/>
|
||||
<field name="create_time" invisible="1"/>
|
||||
<field name="processing_order_id" invisible="not processing_order_id"/>
|
||||
<field name="remake"/>
|
||||
<field name="problem_description"/>
|
||||
<field name="documents_ids" widget="preview_many2many"/>
|
||||
</group>
|
||||
<group string="维修详情">
|
||||
<field name="problem_description"/>
|
||||
</group>
|
||||
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
|
||||
@@ -30,6 +30,8 @@ class PropertyAccountsReceivable(models.Model):
|
||||
create_time = fields.Datetime(string='创建时间', default=fields.Datetime.now)
|
||||
is_reconciliation = fields.Boolean(string='对账')
|
||||
difference_amount = fields.Float(string='差额')
|
||||
print_date = fields.Date(string='打印日期')
|
||||
print_number = fields.Integer(string='打印次数')
|
||||
delivered1 = fields.Float(string='已交')
|
||||
is_has = fields.Boolean(string='已退押金')
|
||||
has_date = fields.Date(string='退押金日期')
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
<field name="is_suspend" optional="hide"/>
|
||||
<field name="is_write" column_invisible="1"/>
|
||||
<field name="bank_id" column_invisible="1"/>
|
||||
<field name="print_number"/>
|
||||
<field name="print_date"/>
|
||||
<field name="discount_date"/>
|
||||
<field name="has_date"/>
|
||||
<button name="receivable_log_wizard" string="日志" type="object" class="oe_highlight"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
@@ -52,6 +52,9 @@ class PrintPaymentWizard(models.Model):
|
||||
receivable_lines = self.contract_id.receivable_ids.filtered(
|
||||
lambda line: start_date <= line.due_date <= end_date
|
||||
)
|
||||
for line in receivable_lines:
|
||||
line.print_date = today
|
||||
line.number +=1
|
||||
report_data = {
|
||||
'contract': self.contract_id,
|
||||
'selected_year': self.select_year,
|
||||
|
||||
Reference in New Issue
Block a user